Bases: object
An HTTP client that handles: - all methods - caching - ETags - compression, - HTTPS - Basic - Digest - WSSE
and more.
Add a key and cert that will be used any time a request requires authentication.
Add a name and password that will be used any time a request requires authentication.
Remove all the names and passwords that are used for authentication
Performs a single HTTP request. The ‘uri’ is the URI of the HTTP resource and can begin with either ‘http’ or ‘https’. The value of ‘uri’ must be an absolute URI.
The ‘method’ is the HTTP method to perform, such as GET, POST, DELETE, etc. There is no restriction on the methods allowed.
The ‘body’ is the entity body to be sent with the request. It is a string object.
Any extra headers that are to be sent with the request should be provided in the ‘headers’ dictionary.
The maximum number of redirect to follow before raising an exception is ‘redirections. The default is 5.
The return value is a tuple of (response, content), the first being and instance of the ‘Response’ class, the second being a string that contains the response entity body.
Bases: dict
An object more like email.Message than httplib.HTTPResponse.
HTTP protocol version used by server. 10 for HTTP/1.0, 11 for HTTP/1.1.
Reason phrase returned by server.
Status code returned by server.
Bases: object
Collect information required to use a proxy.
Bases: exceptions.Exception
Bases: cbtestlib.membase.api.httplib2.HttpLib2ErrorWithResponse
Bases: cbtestlib.membase.api.httplib2.HttpLib2ErrorWithResponse
Bases: cbtestlib.membase.api.httplib2.HttpLib2ErrorWithResponse
Bases: cbtestlib.membase.api.httplib2.HttpLib2ErrorWithResponse
Bases: cbtestlib.membase.api.httplib2.HttpLib2ErrorWithResponse
iri2uri
Converts an IRI to a URI.
Convert an IRI to a URI. Note that IRIs must be passed in a unicode strings. That is, do not utf-8 encode the IRI before passing it into the function.