PyDocs

Internet Protocols and Support

http.server

not WASI

HTTP server classes.

Note: BaseHTTPRequestHandler doesn't implement any HTTP request; see
SimpleHTTPRequestHandler for simple implementations of GET, HEAD and POST.

It does, however, optionally implement HTTP/1.1 persistent connections.

XXX To do:

- log requests even later (to capture byte count)
- log user-agent header and other interesting goodies
- send error log to separate file
Symbols in http.server

b

BaseHTTPRequestHandler
HTTP request handler base class.

h

HTTPServer
This class builds on the TCPServer class by storing the server address as instance variables named server_name and server_port.
HTTPSServer
Subclass of HTTPServer with a wrapped socket using the ssl module.

s

SimpleHTTPRequestHandler
Simple HTTP request handler with GET and HEAD commands.

t

ThreadingHTTPServer
This class is identical to HTTPServer but uses threads to handle requests by using the ThreadingMixIn.
ThreadingHTTPSServer
This class is identical to HTTPSServer but uses threads to handle requests by inheriting from ThreadingMixIn.