D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
urllib3
/
util
/
__pycache__
/
Filename :
proxy.cpython-37.pyc
back
Copy
B �B�h| � @ 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)�schemeZuse_forwarding_for_https)r r r � r �C/opt/alt/python37/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