"""
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)
"""
# If we're not using a proxy, no way to use a tunnel.
return False
# HTTP destinations never require tunneling, we always forward.
return False
# Support for forwarding with HTTPS proxies and HTTPS destinations.
return False
# Otherwise always use a tunnel.
return True
"""
Generates a default proxy ssl context if one hasn't been provided by the
user.
"""
=
return