Part of libcloud.common.base View Source View In Hierarchy
Known subclasses: libcloud.common.base.JsonResponse, libcloud.common.base.RawResponse, libcloud.common.base.XmlResponse, libcloud.common.openstack.OpenStackAuthResponse, libcloud.compute.drivers.cloudsigma.CloudSigmaResponse, libcloud.compute.drivers.ecp.ECPResponse, libcloud.compute.drivers.openstack.OpenStackResponse, libcloud.storage.drivers.cloudfiles.CloudFilesResponse
A Base Response class to derive from.
Method | __init__ | Undocumented |
Method | parse_body | Parse response body. |
Method | parse_error | Parse the error messages. |
Method | success | Determine if our request was successful. |
Method | _decompress_response | Decompress a response body if it is using deflate or gzip encoding. |
Parse response body. Override in a provider's subclass. @return: Parsed body.
Parse the error messages. Override in a provider's subclass. @return: Parsed error.
Determine if our request was successful. The meaning of this can be arbitrary; did we receive OK status? Did the node get created? Were we authenticated? @return: C{True} or C{False}
Decompress a response body if it is using deflate or gzip encoding. @return: Decompressed response