Kodi Development  20.0
for Binary and Script based Add-Ons
WsgiResponse

Detailed Description

Represents the start_response callable passed to a WSGI handler.

Class: WsgiResponse()


Function Documentation

◆ operator()

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