Skip to content

Commit 7e7463b

Browse files
author
Jon Wayne Parrott
authored
Remove httplib2, replace with Requests (#3674)
* Core: remove httplib2, replace with Requests Additionally remove make_exception in favor of from_http_status and from_http_response. * Datastore: replace httplib2 with Requests * DNS: replace httplib2 with Requests * Error Reporting: replace httplib2 with requests * Language: replace httplib2 with Requests * Logging: replace httplib2 with requests * Monitoring: replace httplib2 with Requests * Pubsub: replace httplib2 with Requests * Resource Manager: replace httplib2 with Requests * Runtimeconfig: replace httplib2 with Requests * Speech: replace httplib2 with Requests * Storage: replace httplib2 with Requests * BigQuery: replace httplib2 with Requests * Translate: replace httplib2 with Requests * Vision: replace httplib2 with Requests
1 parent 5e5cad1 commit 7e7463b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

google/cloud/error_reporting/_logging.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ class _ErrorReportingLoggingAPI(object):
3737
``_http`` object is passed), falls back to the default
3838
inferred from the environment.
3939
40-
:type _http: :class:`httplib2.Http` or class that defines ``request()``.
41-
:param _http: An optional HTTP object to make requests. If not passed, an
40+
:type _http: :class:`~requests.Session`
41+
:param _http: (Optional) HTTP object to make requests. Can be any object
42+
that defines ``request()`` with the same interface as
43+
:meth:`requests.Session.request`. If not passed, an
4244
``_http`` object is created that is bound to the
4345
``credentials`` for the current object.
4446
This parameter should be considered private, and could

google/cloud/error_reporting/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ class Client(ClientWithProject):
9090
``_http`` object is passed), falls back to the default
9191
inferred from the environment.
9292
93-
:type _http: :class:`httplib2.Http` or class that defines ``request()``.
94-
:param _http: An optional HTTP object to make requests. If not passed, an
93+
:type _http: :class:`~requests.Session`
94+
:param _http: (Optional) HTTP object to make requests. Can be any object
95+
that defines ``request()`` with the same interface as
96+
:meth:`requests.Session.request`. If not passed, an
9597
``_http`` object is created that is bound to the
9698
``credentials`` for the current object.
9799
This parameter should be considered private, and could

0 commit comments

Comments
 (0)