MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_proxy_response_headers

Method get_proxy_response_headers

Lib/http/client.py:1006–1018  ·  view source on GitHub ↗

Returns a dictionary with the headers of the response received from the proxy server to the CONNECT request sent to set the tunnel. If the CONNECT request was not sent, the method returns None.

(self)

Source from the content-addressed store, hash-verified

1004 response.close()
1005
1006 def get_proxy_response_headers(self):
1007 """
1008 Returns a dictionary with the headers of the response
1009 received from the proxy server to the CONNECT request
1010 sent to set the tunnel.
1011
1012 If the CONNECT request was not sent, the method returns None.
1013 """
1014 return (
1015 _parse_header_lines(self._raw_proxy_headers)
1016 if self._raw_proxy_headers is not None
1017 else None
1018 )
1019
1020 def connect(self):
1021 """Connect to the host and port specified in __init__."""

Calls 1

_parse_header_linesFunction · 0.85

Tested by 2