OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | server_version (self) |
def | make_environ (self) |
def | run_wsgi (self) |
def | handle (self) |
def | initiate_shutdown (self) |
def | connection_dropped (self, error, environ=None) |
def | handle_one_request (self) |
def | send_response (self, code, message=None) |
def | version_string (self) |
def | address_string (self) |
def | port_integer (self) |
def | log_request (self, code="-", size="-") |
def | log_error (self, *args) |
def | log_message (self, format, *args) |
def | log (self, type, message, *args) |
def | get_header_items (self) |
Data Fields | |
client_address | |
environ | |
close_connection | |
raw_requestline | |
A request handler that implements WSGI dispatching.
def address_string | ( | self | ) |
def connection_dropped | ( | self, | |
error, | |||
environ = None |
|||
) |
Called if the connection was closed by the client. By default nothing happens.
def get_header_items | ( | self | ) |
Get an iterable list of key/value pairs representing headers. This function provides Python 2/3 compatibility as related to the parsing of request headers. Python 2.7 is not compliant with RFC 3875 Section 4.1.18 which requires multiple values for headers to be provided or RFC 2616 which allows for folding of multi-line headers. This function will return a matching list regardless of Python version. It can be removed once Python 2.7 support is dropped. :return: List of tuples containing header hey/value pairs
def handle | ( | self | ) |
Handles a request ignoring dropped connections.
def handle_one_request | ( | self | ) |
Handle a single HTTP request.
def initiate_shutdown | ( | self | ) |
A horrible, horrible way to kill the server for Python 2.6 and later. It's the best we can do.
def log | ( | self, | |
type, | |||
message, | |||
* | args | ||
) |
def log_error | ( | self, | |
* | args | ||
) |
def log_message | ( | self, | |
format, | |||
* | args | ||
) |
def log_request | ( | self, | |
code = "-" , |
|||
size = "-" |
|||
) |
def make_environ | ( | self | ) |
def port_integer | ( | self | ) |
def run_wsgi | ( | self | ) |
def send_response | ( | self, | |
code, | |||
message = None |
|||
) |
Send the response header and log the response code.
def server_version | ( | self | ) |
def version_string | ( | self | ) |
client_address |
close_connection |
environ |
raw_requestline |