module documentation

Undocumented

Function connection_requires_http_tunnel Returns True if the connection requires an HTTP CONNECT through the proxy.
Function create_proxy_ssl_context 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)

def create_proxy_ssl_context(ssl_version, cert_reqs, ca_certs=None, ca_cert_dir=None, ca_cert_data=None): (source)

Generates a default proxy ssl context if one hasn't been provided by the user.