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
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

Done(self, errmsg)

source code 

Finishes a request.

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