mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Minor doc updates
- Improve wording of sentence describing proxy environment variable setting. - Mention that proxy URLs must include the scheme.
This commit is contained in:
@@ -305,7 +305,8 @@ If you need to use a proxy, you can configure individual requests with the
|
||||
|
||||
requests.get("http://example.org", proxies=proxies)
|
||||
|
||||
You can also configure proxies by environment variables ``HTTP_PROXY`` and ``HTTPS_PROXY``.
|
||||
You can also configure proxies by setting the environment variables
|
||||
``HTTP_PROXY`` and ``HTTPS_PROXY``.
|
||||
|
||||
::
|
||||
|
||||
@@ -321,6 +322,8 @@ To use HTTP Basic Auth with your proxy, use the `http://user:password@host/` syn
|
||||
"http": "http://user:pass@10.10.1.10:3128/",
|
||||
}
|
||||
|
||||
Note that proxy URLs must include the scheme.
|
||||
|
||||
Compliance
|
||||
----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user