Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ def _tunnel(self):
def get_proxy_response_headers(self):
Comment thread
gpshead marked this conversation as resolved.
"""
Returns a dictionary with the headers of the response
received from the proxy server to the CONNECT request.
received from the proxy server to the CONNECT request
sent to set the tunnel.

If the CONNECT request was not sent, the method returns
an empty dictionary.
Expand Down
Comment thread
gpshead marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Added attribute '_raw_proxy_headers' to HTTPConnection class. This
attribute contains the unprocessed header lines of the proxy server response
to the CONNECT request.
Added method get_proxy_response_headers to HTTPConnection class that allows
to get a dictionary with headers of the proxy server response
to the CONNECT request.
The HTTPConnection class attribute _proxy_response_headers has been removed.