summaryrefslogtreecommitdiff
path: root/Doc/library/httplib.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-12-20 07:29:31 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2009-12-20 07:29:31 +0000
commit0732fd952baf34eb0636fd6ce4c7093d2d70e98b (patch)
treeafc870675c23f4e2e4242f921ed9df9729ea380b /Doc/library/httplib.rst
parent7713acf201e9638966a9a8f8e38446400410e826 (diff)
downloadcpython-git-0732fd952baf34eb0636fd6ce4c7093d2d70e98b.tar.gz
Document the headers parameter for set_tunnel.
Diffstat (limited to 'Doc/library/httplib.rst')
-rw-r--r--Doc/library/httplib.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/httplib.rst b/Doc/library/httplib.rst
index bf7e8ef57a..d881968e48 100644
--- a/Doc/library/httplib.rst
+++ b/Doc/library/httplib.rst
@@ -428,11 +428,14 @@ HTTPConnection Objects
debug level is ``0``, meaning no debugging output is printed.
-.. method:: HTTPConnection.set_tunnel(host,port=None)
+.. method:: HTTPConnection.set_tunnel(host,port=None, headers=None)
Set the host and the port for HTTP Connect Tunnelling. Normally used when
it is required to do HTTPS Conection through a proxy server.
+ The headers argument should be a mapping of extra HTTP headers to to sent
+ with the CONNECT request.
+
.. versionadded:: 2.7