Package ganeti :: Package http :: Module client :: Class HttpClientRequestExecutor
[hide private]
[frames] | no frames]

Class HttpClientRequestExecutor

source code


Instance Methods [hide private]
 
__init__(self, req)
Initializes the HttpClientRequestExecutor class.
source code
 
_Connect(self)
Non-blocking connect to host with timeout.
source code
 
_SendRequest(self)
Sends request to server.
source code
 
_ReadResponse(self)
Read response from server.
source code

Inherited from HttpBase (private): _CreateSocket, _SSLVerifyCallback

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

Class Variables [hide private]
  DEFAULT_HEADERS = {http.HTTP_USER_AGENT: http.HTTP_GANETI_VERS...
  CONNECT_TIMEOUT = 5
  WRITE_TIMEOUT = 10
  READ_TIMEOUT = None
  CLOSE_TIMEOUT = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, req)
(Constructor)

source code 

Initializes the HttpClientRequestExecutor class.

Parameters:
  • req (HttpClientRequest) - Request object
Overrides: object.__init__

Class Variable Details [hide private]

DEFAULT_HEADERS

Value:
{http.HTTP_USER_AGENT: http.HTTP_GANETI_VERSION, http.HTTP_CONNECTION:\
 "close",}