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

Class HttpServerRequestExecutor

source code


Implements server side of HTTP.

This class implements the server side of HTTP. It's based on code of Python's BaseHTTPServer, from both version 2.4 and 3k. It does not support non-ASCII character encodings. Keep-alive connections are not supported.

Instance Methods [hide private]
 
__init__(self, server, handler, sock, client_addr)
Initializes this class.
source code

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

Static Methods [hide private]
 
_ReadRequest(sock, timeout)
Reads a request sent by client.
source code
 
_SendResponse(sock, req_msg, msg, timeout)
Sends the response to the client.
source code
Class Variables [hide private]
  WRITE_TIMEOUT = 10
  READ_TIMEOUT = 10
  CLOSE_TIMEOUT = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, server, handler, sock, client_addr)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__