[Python-checkins] r76912 - python/trunk/Doc/library/httplib.rst
senthil.kumaran
python-checkins at python.org
Sun Dec 20 08:29:31 CET 2009
Author: senthil.kumaran
Date: Sun Dec 20 08:29:31 2009
New Revision: 76912
Log:
Document the headers parameter for set_tunnel.
Modified:
python/trunk/Doc/library/httplib.rst
Modified: python/trunk/Doc/library/httplib.rst
==============================================================================
--- python/trunk/Doc/library/httplib.rst (original)
+++ python/trunk/Doc/library/httplib.rst Sun Dec 20 08:29:31 2009
@@ -428,11 +428,14 @@
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
More information about the Python-checkins
mailing list