Skip to content

Commit 7319f33

Browse files
committed
Document automatic proxy config with httplib2-0.7.4.
Closes #75.
1 parent a1d4f6d commit 7319f33

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

doc/api/client.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ API calls are limited by github.com to 1 per second by default. To have the
4242
>>> github = Github(username="ask", api_token=".......",
4343
... requests_per_second=1)
4444

45-
If you wish to use a HTTP proxy you can pass in the ``proxy_host`` and
46-
``proxy_port`` settings to enable it. The default for ``proxy_port``, if not
47-
given, is 8080::
45+
By default, :pypi:`httplib2 (0.7.4)` will use the proxies set in the
46+
:envvar:`http_proxy` andr :envvar:`https_proxy` environment variables. This
47+
means that well configured systems shouldn't need any manual configuration for
48+
proxy support.
49+
50+
If you wish to manually configure a HTTP proxy you can pass in the
51+
``proxy_host`` and ``proxy_port`` settings to enable it. The default for
52+
``proxy_port``, if not given, is 8080::
4853

4954
>>> from github2.client import Github
5055
>>> github = Github(username="ask", api_token=".......",

0 commit comments

Comments
 (0)