glanceclient.common.http module
updated: 2022-09-23 12:13
glanceclient.common.http module
-
class glanceclient.common.http.HTTPClient(endpoint, **kwargs)
Bases: glanceclient.common.http._BaseHTTPClient
-
delete(url, **kwargs)
-
get(url, **kwargs)
-
head(url, **kwargs)
-
log_curl_request(method, url, headers, data, kwargs)
-
static log_http_response(resp)
-
static parse_endpoint(endpoint)
-
patch(url, **kwargs)
-
post(url, **kwargs)
-
put(url, **kwargs)
-
class glanceclient.common.http.SessionClient(session, **kwargs)
Bases: keystoneauth1.adapter.Adapter
, glanceclient.common.http._BaseHTTPClient
-
request(url, method, **kwargs)
Encodes headers.
Note: This should be used right before
sending anything out.
- Parameters
headers – Headers to encode
- Returns
Dictionary with encoded headers’
names and values
-
glanceclient.common.http.get_http_client(endpoint=None, session=None, **kwargs)
updated: 2022-09-23 12:13