관리-도구
편집 파일: proxy.cpython-38.pyc
U )�e| � @ 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 �@/opt/hc_python/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 �<module> s �