Package qm :: Module web :: Class WebRequestHandler
[hide private]
[frames] | no frames]

Class WebRequestHandler

source code

SocketServer.BaseRequestHandler --+            
                                  |            
  SocketServer.StreamRequestHandler --+        
                                      |        
  BaseHTTPServer.BaseHTTPRequestHandler --+    
                                          |    
  SimpleHTTPServer.SimpleHTTPRequestHandler --+
                                              |
                                             WebRequestHandler

Handler for HTTP requests.

This class groups callback functions that are invoked in response to HTTP requests by 'WebServer'.

Don't define '__init__' or store any persistent information in this class or subclasses; a new instance is created for each request. Instead, store the information in the server instance, available through the 'server' attribute.

Nested Classes [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: MessageClass

Instance Methods [hide private]
 
do_GET(self)
Process HTTP GET requests.
source code
 
do_POST(self)
Process HTTP POST requests.
source code
 
__HandleScriptRequest(self, request) source code
 
__HandleFileRequest(self, request, path) source code
 
__HandlePageCacheRequest(self, request)
Process a retrieval request from the global page cache.
source code
 
__HandleSessionCacheRequest(self, request)
Process a retrieval request from the session page cache.
source code
 
__HandleRequest(self, request)
Process a request from a GET or POST operation.
source code
 
log_message(self, format, *args)
Log a message; overrides 'BaseHTTPRequestHandler.log_message'.
source code

Inherited from SimpleHTTPServer.SimpleHTTPRequestHandler: copyfile, do_HEAD, guess_type, list_directory, send_head, translate_path

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: address_string, date_time_string, end_headers, handle, handle_one_request, log_date_time_string, log_error, log_request, parse_request, send_error, send_header, send_response, version_string

Inherited from SocketServer.StreamRequestHandler: finish, setup

Inherited from SocketServer.BaseRequestHandler: __init__

Class Variables [hide private]

Inherited from SimpleHTTPServer.SimpleHTTPRequestHandler: extensions_map, server_version

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: default_request_version, error_content_type, error_message_format, monthname, protocol_version, responses, sys_version, weekdayname

Inherited from SocketServer.StreamRequestHandler: disable_nagle_algorithm, rbufsize, timeout, wbufsize

Method Details [hide private]

do_GET(self)

source code 

Process HTTP GET requests.

Overrides: SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET

__HandleRequest(self, request)

source code 

Process a request from a GET or POST operation.

'request' -- A 'WebRequest' object.

log_message(self, format, *args)

source code 

Log a message; overrides 'BaseHTTPRequestHandler.log_message'.

Overrides: BaseHTTPServer.BaseHTTPRequestHandler.log_message