U
    ‰¾úg|  ã                   @  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)ÚschemeZuse_forwarding_for_https)r   r	   r
   © r   ú6/tmp/pip-unpacked-wheel-f4zjg0cl/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      ý