module documentation

HTTP server module.

Class HttpResponder No class docstring; 0/1 instance variable, 2/2 methods, 1/2 static method documented
Class HttpServer Generic HTTP server class
Class HttpServerHandler Base class for handling HTTP server requests.
Class HttpServerRequestExecutor Implements server side of HTTP.
Constant DEFAULT_ERROR_CONTENT_TYPE Undocumented
Constant DEFAULT_ERROR_MESSAGE Undocumented
Constant MONTHNAME Undocumented
Constant WEEKDAYNAME Undocumented
Class _HttpClientToServerMessageReader Reads an HTTP request sent by client.
Class _HttpServerRequest Data structure for HTTP request on server side.
Class _HttpServerToClientMessageWriter Writes an HTTP response to client.
Function _DateTimeHeader Return the current date and time formatted for a message header.
Function _HandleServerRequestInner Calls the handler function for the current request.
DEFAULT_ERROR_CONTENT_TYPE: str =

Undocumented

Value
'text/html'
DEFAULT_ERROR_MESSAGE: str =

Undocumented

Value
'''<html>
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code %(code)d.
...
MONTHNAME: list =

Undocumented

Value
[None,
 'Jan',
 'Feb',
 'Mar',
 'Apr',
 'May',
 'Jun',
...
WEEKDAYNAME: list[str] =

Undocumented

Value
['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
def _DateTimeHeader(gmnow=None):

Return the current date and time formatted for a message header.

The time MUST be in the GMT timezone.

def _HandleServerRequestInner(handler, req_msg, reader):

Calls the handler function for the current request.