From 7e5229c3abd6195a7dbca8a0da30dbd203212205 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Sun, 20 Dec 2009 07:31:21 +0000 Subject: [PATCH] Document the headers parameter for set_tunnel. --- Doc/library/http.client.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index 31a0a9a78ec..7a6717b5cf8 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -386,11 +386,14 @@ HTTPConnection Objects .. versionadded:: 3.1 -.. 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 a HTTPS Connection through a proxy server. + The headers argument should be a mapping of extra HTTP headers to to sent + with the CONNECT request. + .. versionadded:: 3.2 .. method:: HTTPConnection.connect()