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

Class _HttpClient

source code


Instance Methods [hide private]
 
__init__(self, curl_config_fn)
Initializes this class.
source code
 
GetCurlHandle(self)
Returns the cURL object.
source code
HttpClientRequest or None
GetCurrentRequest(self)
Returns the current request.
source code
 
StartRequest(self, req)
Starts a request on this client.
source code
 
Done(self, errmsg)
Finishes a request.
source code

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

Static Methods [hide private]
 
_CreateCurlHandle()
Returns a new cURL object.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, curl_config_fn)
(Constructor)

source code 

Initializes this class.

Parameters:
  • curl_config_fn (callable) - Function to configure cURL object after initialization
Overrides: object.__init__

StartRequest(self, req)

source code 

Starts a request on this client.

Parameters:

Done(self, errmsg)

source code 

Finishes a request.

Parameters:
  • errmsg (string or None) - Error message if request failed