DocXMLRPCServer.DocXMLRPCRequestHandler
¶
-
class
DocXMLRPCServer.
DocXMLRPCRequestHandler
(request, client_address, server)[source]¶ XML-RPC and documentation request handler class.
Handles all HTTP POST requests and attempts to decode them as XML-RPC requests.
Handles all HTTP GET requests and interprets them as requests for documentation.
Methods¶
__init__ (request, client_address, server) |
|
accept_encodings () |
|
address_string () |
Return the client address formatted for logging. |
date_time_string ([timestamp]) |
Return the current date and time formatted for a message header. |
decode_request_content (data) |
|
do_GET () |
Handles the HTTP GET request. |
do_POST () |
Handles the HTTP POST request. |
end_headers () |
Send the blank line ending the MIME headers. |
finish () |
|
handle () |
Handle multiple requests if necessary. |
handle_one_request () |
Handle a single HTTP request. |
is_rpc_path_valid () |
|
log_date_time_string () |
Return the current time formatted for logging. |
log_error (format, *args) |
Log an error. |
log_message (format, *args) |
Log an arbitrary message. |
log_request ([code, size]) |
Selectively log an accepted request. |
parse_request () |
Parse a request (internal). |
report_404 () |
|
send_error (code[, message]) |
Send and log an error reply. |
send_header (keyword, value) |
Send a MIME header. |
send_response (code[, message]) |
Send the response header and log the response code. |
setup () |
|
version_string () |
Return the server software version string. |