U
ì·êf| ã @ 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 úC/opt/alt/python38/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 Ú