File: //usr/local/lib/python3.7/site-packages/urllib3/util/__pycache__/proxy.cpython-37.pyc
B
���g| � @ sL d dl mZ d dlZddlmZ ejr2ddlmZ dddd d
d�dd
�ZdS )� )�annotationsN� )�Url� )�ProxyConfigz
Url | NonezProxyConfig | Nonez
str | None�bool)� proxy_url�proxy_config�destination_scheme�returnc C s4 | dkrdS |dkrdS | j dkr0|r0|jr0dS dS )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 �</usr/local/lib/python3.7/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