o
    Df|                     @  sH   d dl mZ d dlZddlmZ ejrddlmZ 			ddddZdS )    )annotationsN   )Url   )ProxyConfig	proxy_url
Url | Noneproxy_configProxyConfig | Nonedestination_scheme
str | Nonereturnboolc                 C  s4   | du rdS |dkrdS | j dkr|r|jrd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   K/home/ubuntu/webapp/venv/lib/python3.10/site-packages/urllib3/util/proxy.pyconnection_requires_http_tunnel   s   
r   )NNN)r   r   r	   r
   r   r   r   r   )	
__future__r   typingurlr   TYPE_CHECKING
connectionr   r   r   r   r   r   <module>   s    