magnumclient.common.httpclient Module¶magnumclient.common.httpclient.HTTPClient(endpoint, api_version='latest', **kwargs)¶Bases: object
get_connection()¶get_connection_params(endpoint, **kwargs)¶json_request(method, url, **kwargs)¶log_curl_request(method, url, kwargs)¶log_http_response(resp, body=None)¶raw_request(method, url, **kwargs)¶magnumclient.common.httpclient.ResponseBodyIterator(resp)¶Bases: object
A class that acts as an iterator over an HTTP response.
next()¶magnumclient.common.httpclient.SessionClient(user_agent='python-magnumclient', logger=<logging.Logger object>, api_version='latest', *args, **kwargs)¶Bases: keystoneauth1.adapter.LegacyJsonAdapter
HTTP client based on Keystone client session.
json_request(method, url, **kwargs)¶raw_request(method, url, **kwargs)¶magnumclient.common.httpclient.VerifiedHTTPSConnection(host, port, key_file=None, cert_file=None, ca_file=None, timeout=None, insecure=False)¶Bases: httplib.HTTPSConnection
httplib-compatibile connection using client-side SSL authentication
connect()¶Connect to a host on a given (SSL) port.
If ca_file is pointing somewhere, use it to check Server Certificate.
Redefined/copied and extended from httplib.py:1105 (Python 2.6.x). This is needed to pass cert_reqs=ssl.CERT_REQUIRED as parameter to ssl.wrap_socket(), which forces SSL to check server certificate against our client certificate.
get_system_ca_file()¶Return path to system default CA file.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.