libcloud.http module
Subclass for httplib.HTTPSConnection with optional certificate name
verification, depending on libcloud.security settings.
-
class libcloud.http.LibcloudBaseConnection[source]
Bases: object
Base connection class to inherit from.
Note: This class should not be instantiated directly.
-
ca_cert = None
-
http_proxy_used = False
-
proxy_host = None
-
proxy_password = None
-
proxy_port = None
-
proxy_scheme = None
-
proxy_username = None
-
session = None
-
set_http_proxy(proxy_url)[source]
Set a HTTP proxy which will be used with this connection.
- Parameters:
proxy_url (str
) – Proxy URL (e.g. http://<hostname>:<port> without
authentication and
http://<username>:<password>@<hostname>:<port> for
basic auth authentication information.
-
class libcloud.http.LibcloudConnection(host, port, secure=None, **kwargs)[source]
Bases: LibcloudBaseConnection
-
close()[source]
-
connect()[source]
-
getresponse()[source]
-
host = None
-
prepared_request(method, url, body=None, headers=None, raw=False, stream=False)[source]
-
read()[source]
-
property reason
-
request(method, url, body=None, headers=None, raw=False, stream=False, hooks=None)[source]
-
response = None
-
property status
-
timeout = None
-
property verification
The option for SSL verification given to underlying requests