Package openid :: Package test :: Module test_fetchers :: Class FetcherTestHandler
[frames] | no frames]

Class FetcherTestHandler

source code

SocketServer.BaseRequestHandler --+        
                                  |        
  SocketServer.StreamRequestHandler --+    
                                      |    
  BaseHTTPServer.BaseHTTPRequestHandler --+
                                          |
                                         FetcherTestHandler

Nested Classes

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: MessageClass

Instance Methods
 
log_request(self, *args)
Log an accepted request.
source code
 
do_GET(self) source code
 
do_POST(self) source code
 
errorResponse(self, message=None) source code
 
finish(self) source code

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

Inherited from SocketServer.StreamRequestHandler: setup

Inherited from SocketServer.BaseRequestHandler: __init__

Class Variables
  cases = {'/301redirect': (301, '/success'), '/302redirect': (3...

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

Inherited from SocketServer.StreamRequestHandler: rbufsize, wbufsize

Method Details

log_request(self, *args)

source code 

Log an accepted request.

This is called by send_response().

Overrides: BaseHTTPServer.BaseHTTPRequestHandler.log_request
(inherited documentation)

finish(self)

source code 
Overrides: SocketServer.BaseRequestHandler.finish

Class Variable Details

cases

Value:
{'/301redirect': (301, '/success'),
 '/302redirect': (302, '/success'),
 '/303redirect': (303, '/success'),
 '/307redirect': (307, '/success'),
 '/badreq': (400, None),
 '/error': (500, None),
 '/forbidden': (403, None),
 '/notfound': (404, None),
...