Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
WsgiResponse

Represents the start_response callable passed to a WSGI handler. More...

Classes

class  XBMCAddon::xbmcwsgi::WsgiResponse
 

Functions

 XBMCAddon::xbmcwsgi::WsgiResponse::WsgiResponse ()
 
 XBMCAddon::xbmcwsgi::WsgiResponse::~WsgiResponse () override
 
 XBMCAddon::xbmcwsgi::WsgiResponse::operator (...)
 
void XBMCAddon::xbmcwsgi::WsgiResponse::Append (const std::string &data)
 
bool XBMCAddon::xbmcwsgi::WsgiResponse::Finalize (HTTPPythonRequest *request) const
 

Detailed Description

Represents the start_response callable passed to a WSGI handler.

Class: WsgiResponse()


Function Documentation

◆ Append()

void XBMCAddon::xbmcwsgi::WsgiResponse::Append ( const std::string & data)

◆ Finalize()

bool XBMCAddon::xbmcwsgi::WsgiResponse::Finalize ( HTTPPythonRequest * request) const

◆ 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
statusan HTTP status string like 200 OK or 404 Not Found.
response_headersa 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