Package ganeti :: Package http :: Module server :: Class HttpResponder
[hide private]
[frames] | no frames]

Class HttpResponder

source code


Instance Methods [hide private]
 
__init__(self, handler)
Initializes this class.
source code
 
__call__(self, fn)
Handles a request.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
_SetError(responses, handler, response_msg, err)
Sets the response code and body from a HttpException.
source code
 
_Finalize(responses, msg) source code
Class Variables [hide private]
  default_request_version = "HTTP/0.9"
  responses = BaseHTTPServer.BaseHTTPRequestHandler.responses
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, handler)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__

__call__(self, fn)
(Call operator)

source code 

Handles a request.

Parameters:

_SetError(responses, handler, response_msg, err)
Static Method

source code 

Sets the response code and body from a HttpException.

Parameters:
  • err (HttpException) - Exception instance