Transport - HTTP client library support.
google.auth
is designed to work with various HTTP client libraries such as urllib3 and requests. In order to work across these libraries with different interfaces some abstraction is needed.
This module provides two interfaces that are implemented by transport adapters to support HTTP libraries. Request
defines the interface expected by google.auth
to make requests. Response
defines the interface for the return value of Request
.
HTTP status codes indicating a request can be retried.
Which HTTP status code indicate that credentials should be refreshed.
How many times to refresh the credentials and retry a request.
Bases: object
HTTP Response data.
The HTTP status code.
The response body.
Bases: object
Interface for a callable that makes HTTP requests.
Specific transport implementations should provide an implementation of this that adapts their specific request / response API.
Make an HTTP request.
url (str) – The URI to be requested.
method (str) – The HTTP method to use for the request. Defaults to ‘GET’.
body (bytes) – The payload / body in HTTP request.
timeout (Optional
int
) – The number of seconds to wait for a response from the server. If not specified or if None, the transport-specific default timeout will be used.
kwargs – Additionally arguments passed on to the transport’s request method.
The HTTP response.
google.auth.exceptions.TransportError – If any exception occurred.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4