Home | Trees | Indices | Help |
|
---|
|
SocketServer.BaseRequestHandler --+ | SocketServer.StreamRequestHandler --+ | BaseHTTPServer.BaseHTTPRequestHandler --+ | SimpleHTTPServer.SimpleHTTPRequestHandler --+ | SimpleJSONRPCRequestHandler
Simple JSONRPC request handler class and HTTP GET Server
Handles all HTTP POST requests and attempts to decode them as JSONRPC requests.
Handles all HTTP GET requests and serves the content from the current directory.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
Method Details |
Common code for GET and HEAD commands. This sends the response code and MIME headers. Return value is either a file object (which has to be copied to the outputfile by the caller unless the command was HEAD, and must be closed by the caller under all circumstances), or None, in which case the caller has nothing further to do.
|
Helper to produce a directory listing (absent index.html). Return value is either a file object, or None (indicating an error). In either case, the headers are sent, making the interface the same as for send_head().
|
Send and log an error reply. Arguments are the error code, and a detailed message. The detailed message defaults to the short entry matching the response code. This sends an error response (so it must be called before any output has been generated), logs the error, and finally sends a piece of HTML explaining the error to the user.
|
Handles the HTTP POST request. Attempts to interpret all HTTP POST requests as XML-RPC calls, which are forwarded to the server's _dispatch method for handling. |
Selectively log an accepted request.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 3 03:55:57 2013 | http://epydoc.sourceforge.net |