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()
◆ operator()
XBMCAddon::xbmcwsgi::WsgiResponse::operator |
( |
| ... | ) |
|
Function: operator(status, response_headers[, exc_info])
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 |