Commit 0732fd95 authored by Senthil Kumaran's avatar Senthil Kumaran

Document the headers parameter for set_tunnel.

parent 7713acf2
...@@ -428,11 +428,14 @@ HTTPConnection Objects ...@@ -428,11 +428,14 @@ HTTPConnection Objects
debug level is ``0``, meaning no debugging output is printed. 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 Set the host and the port for HTTP Connect Tunnelling. Normally used when
it is required to do HTTPS Conection through a proxy server. 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 .. versionadded:: 2.7
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment