|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib/python2.7/site-packages/urllib3/util/ |
Upload File : |
�
�J�bc @ sD d d l m Z m Z m Z d d d d � Z d d d d � Z d S( i ( t create_urllib3_contextt resolve_cert_reqst resolve_ssl_versionc C sF | d k r t S| d k r t S| j d k rB | rB | j rB t St S( s?
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)
t httpt httpsN( t Nonet Falset schemet use_forwarding_for_httpst True( t proxy_urlt proxy_configt destination_scheme( ( s5 /tmp/pip-install-spIB81/urllib3/urllib3/util/proxy.pyt connection_requires_http_tunnel s c C sV t d t | � d t | � � } | rR | rR | rR t | d � rR | j � n | S( s\
Generates a default proxy ssl context if one hasn't been provided by the
user.
t ssl_versiont cert_reqst load_default_certs( R R R t hasattrR ( R R t ca_certst ca_cert_dirt ca_cert_datat ssl_context( ( s5 /tmp/pip-install-spIB81/urllib3/urllib3/util/proxy.pyt create_proxy_ssl_context% s
N( t ssl_R R R R R
R ( ( ( s5 /tmp/pip-install-spIB81/urllib3/urllib3/util/proxy.pyt <module> s !