class documentation

class HttpServerRequestExecutor(object):

Known subclasses: ganeti.server.noded.MlockallRequestExecutor

View In Hierarchy

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.

Method __init__ Initializes this class.
Constant CLOSE_TIMEOUT Undocumented
Constant READ_TIMEOUT Undocumented
Constant WRITE_TIMEOUT Undocumented
Static Method _ReadRequest Reads a request sent by client.
Static Method _SendResponse Sends the response to the client.
def __init__(self, server, handler, sock, client_addr):

Initializes this class.

CLOSE_TIMEOUT: int =

Undocumented

Value
1
READ_TIMEOUT: int =

Undocumented

Value
10
WRITE_TIMEOUT: int =

Undocumented

Value
10
@staticmethod
def _ReadRequest(sock, timeout):

Reads a request sent by client.

@staticmethod
def _SendResponse(sock, req_msg, msg, timeout):

Sends the response to the client.