http.server.BaseHTTPRequestHandler.handle_one_request()

handle_one_request() This method will parse and dispatch the request to the appropriate do_*() method. You should never need to override it.

http.server.BaseHTTPRequestHandler.headers

headers Holds an instance of the class specified by the MessageClass class variable. This instance parses and manages the headers in the HTTP request. The parse_headers() function from http.client is used to parse the headers and it requires that the HTTP request provide a valid RFC 2822 style header.

http.server.BaseHTTPRequestHandler.log_date_time_string()

log_date_time_string() Returns the current date and time, formatted for logging.

http.server.BaseHTTPRequestHandler.handle_expect_100()

handle_expect_100() When a HTTP/1.1 compliant server receives an Expect: 100-continue request header it responds back with a 100 Continue followed by 200 OK headers. This method can be overridden to raise an error if the server does not want the client to continue. For e.g. server can chose to send 417 Expectation Failed as a response header and return False. New in version 3.2.

http.server.BaseHTTPRequestHandler.flush_headers()

flush_headers() Finally send the headers to the output stream and flush the internal headers buffer. New in version 3.3.

http.server.BaseHTTPRequestHandler.date_time_string()

date_time_string(timestamp=None) Returns the date and time given by timestamp (which must be None or in the format returned by time.time()), formatted for a message header. If timestamp is omitted, it uses the current date and time. The result looks like 'Sun, 06 Nov 1994 08:49:37 GMT'.

http.server.BaseHTTPRequestHandler.handle()

handle() Calls handle_one_request() once (or, if persistent connections are enabled, multiple times) to handle incoming HTTP requests. You should never need to override it; instead, implement appropriate do_*() methods.

http.server.BaseHTTPRequestHandler.end_headers()

end_headers() Adds a blank line (indicating the end of the HTTP headers in the response) to the headers buffer and calls flush_headers(). Changed in version 3.2: The buffered headers are written to the output stream.

http.server.BaseHTTPRequestHandler.error_content_type

error_content_type Specifies the Content-Type HTTP header of error responses sent to the client. The default value is 'text/html'.

http.server.BaseHTTPRequestHandler.error_message_format

error_message_format Specifies a format string that should be used by send_error() method for building an error response to the client. The string is filled by default with variables from responses based on the status code that passed to send_error().