We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaf8976 commit 979a334Copy full SHA for 979a334
1 file changed
gcloud/connection.py
@@ -32,6 +32,20 @@ class Connection(object):
32
Subclasses may seek to use the private key from ``credentials`` to sign
33
data.
34
35
+ A custom (non-``httplib``) HTTP object must have a ``request`` method
36
+ which accepts the following arguments:
37
+
38
+ * ``uri``
39
+ * ``method``
40
+ * ``body``
41
+ * ``headers``
42
43
+ In addition, ``redirections`` and ``connection_type`` may be used.
44
45
+ Without the use of ``credentials.authorize(http)``, a custom ``http``
46
+ object will also need to be able to add a bearer token to API
47
+ requests and handle token refresh on 401 errors.
48
49
:type credentials: :class:`oauth2client.client.OAuth2Credentials` or
50
:class:`NoneType`
51
:param credentials: The OAuth2 Credentials to use for this connection.
0 commit comments