Represents the start_response callable passed to a WSGI handler.
More...
Represents the start_response callable passed to a WSGI handler.
Class: WsgiResponse()
◆ Append()
void XBMCAddon::xbmcwsgi::WsgiResponse::Append |
( |
const std::string & |
data | ) |
|
◆ Finalize()
bool XBMCAddon::xbmcwsgi::WsgiResponse::Finalize |
( |
HTTPPythonRequest * |
request | ) |
const |
◆ operator()
XBMCAddon::xbmcwsgi::WsgiResponse::operator |
( |
|
... | ) |
|
\htmlonly <h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font color=31363b><big> operator(status, response_headers[, exc_info]) </big></font></span></code></h4> \endhtmlonly
Callable implementation to initialize the response with the given HTTP status and the HTTP response headers.
- Parameters
-
status | an HTTP status string like 200 OK or 404 Not Found. |
response_headers | a list of (header_name, header_value) tuples. It must be a Python list. Each header_name must be a valid HTTP header field-name (as |
exc_info | [optional] python sys.exc_info() tuple. This argument should be supplied by the application only if start_response is being called by an error |
- Returns
- The write() method WsgiResponseBody
◆ WsgiResponse()
XBMCAddon::xbmcwsgi::WsgiResponse::WsgiResponse |
( |
| ) |
|
◆ ~WsgiResponse()
XBMCAddon::xbmcwsgi::WsgiResponse::~WsgiResponse |
( |
| ) |
|
|
overridedefault |