mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Clarify documentation for per-host proxies
Make sure it's clear that a per-host proxy matches a scheme and exact hostname.
This commit is contained in:
@@ -483,7 +483,10 @@ To use HTTP Basic Auth with your proxy, use the `http://user:password@host/` syn
|
||||
}
|
||||
|
||||
To give a proxy for a specific scheme and host, use the
|
||||
`scheme://host` form for the key::
|
||||
`scheme://hostname` form for the key. This will match for
|
||||
any request to the given scheme and exact hostname.
|
||||
|
||||
::
|
||||
|
||||
proxies = {
|
||||
"http://10.20.1.128": "http://10.10.1.10:5323",
|
||||
|
||||
Reference in New Issue
Block a user