summaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorCory Benfield <lukasaoz@gmail.com>2015-09-06 15:02:40 +1200
committerCory Benfield <lukasaoz@gmail.com>2015-09-06 15:02:40 +1200
commit56ecdebcc507c71f2386d3bf2ea14db2d27cc834 (patch)
tree5a7fc29650c8f17777868c563787275592c760ab /docs/user
parent14ee84b5fdfc9b5ecdc2fdfc14e3157adee7960a (diff)
parent704a922fc2d77bbc1b24fe2a02ad6876bdc16d5c (diff)
downloadpython-requests-56ecdebcc507c71f2386d3bf2ea14db2d27cc834.tar.gz
Merge pull request #2741 from jasongrout/per-host-proxy
Implement per-host proxies
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/advanced.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst
index f53cbed7..dcd9e228 100644
--- a/docs/user/advanced.rst
+++ b/docs/user/advanced.rst
@@ -486,8 +486,18 @@ 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.
+To give a proxy for a specific scheme and host, use the
+`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",
+ }
+
+Note that proxy URLs must include the scheme.
+
.. _compliance:
Compliance