QuietRequestHandler¶
-
class
privex.rpcemulator.base.
QuietRequestHandler
(request, client_address, server)[source]¶ Same as
jsonrpcserver.server.RequestHandler
but with logging disabled.-
log_message
(format, *args)[source]¶ Log an arbitrary message.
This is used by all other logging functions. Override it if you have specific logging wishes.
The first argument, FORMAT, is a format string for the message to be logged. If the format string contains any % escapes requiring parameters, they should be specified as subsequent arguments (it’s just like printf!).
The client ip and current date/time are prefixed to every message.
-
Methods¶
Methods
|
Initialize self. |
Return the client address. |
|
|
Return the current date and time formatted for a message header. |
|
HTTP POST |
Send the blank line ending the MIME headers. |
|
|
|
|
Handle multiple requests if necessary. |
Decide what to do with an “Expect: 100-continue” header. |
|
Handle a single HTTP request. |
|
Return the current time formatted for logging. |
|
|
Log an error. |
|
Log an arbitrary message. |
|
Log an accepted request. |
Parse a request (internal). |
|
|
Send and log an error reply. |
|
Send a MIME header to the headers buffer. |
|
Add the response header to the headers buffer and log the response code. |
|
Send the response header only. |
|
|
Return the server software version string. |