U
    
?h|                     @  sL   d dl mZ d dlZddlmZ ejr2ddlmZ dddd	d
dddZdS )    )annotationsN   )Url   )ProxyConfigz
Url | NonezProxyConfig | Nonez
str | Nonebool)	proxy_urlproxy_configdestination_schemereturnc                 C  s4   | dkrdS |dkrdS | j dkr0|r0|jr0dS dS )a?  
    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)
    NFhttphttpsT)schemeuse_forwarding_for_https)r   r	   r
    r   D/var/www/html/venv/lib/python3.8/site-packages/urllib3/util/proxy.pyconnection_requires_http_tunnel   s    r   )NNN)	
__future__r   typingurlr   TYPE_CHECKING
connectionr   r   r   r   r   r   <module>   s      