module documentation
Undocumented
Function | connection |
Returns True if the connection requires an HTTP CONNECT through the proxy. |
Function | create |
Generates a default proxy ssl context if one hasn't been provided by the user. |
def connection_requires_http_tunnel(proxy_url=None, proxy_config=None, destination_scheme=None):
(source)
¶
Returns True if the connection requires an HTTP CONNECT through the proxy. :param URL proxy_url: URL of the proxy. :param ProxyConfig proxy_config: Proxy configuration from poolmanager.py :param str destination_scheme: The scheme of the destination. (i.e https, http, etc)