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

Class _PendingRequest

source code


Instance Methods [hide private]
 
__init__(self, curl, req, resp_buffer_read)
Initializes this class.
source code
 
GetCurlHandle(self)
Returns the cURL object.
source code
 
GetCurrentRequest(self)
Returns the current request.
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__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, curl, req, resp_buffer_read)
(Constructor)

source code 

Initializes this class.

Parameters:
  • curl (pycurl.Curl) - cURL object
  • req (HttpClientRequest) - HTTP request
  • resp_buffer_read (callable) - Function to read response body
Overrides: object.__init__

Done(self, errmsg)

source code 

Finishes a request.

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