/opt/imunify360/venv/lib/python3.11/site-packages/requests/__pycache__
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/requests/__pycache__/adapters.cpython-311.pyc (25095B)
§
.M“@ÒÞÄ�ã óâ — d Z ddlZddlZddlmZmZ ddlmZ ddl m
Z
ddl mZ ddl
mZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m!Z!m"Z" ddl#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0m1Z1m2Z2mZmZm3Z3m4Z4m5Z5m6Z6 ddl7m8Z8 ddl9m:Z: n# e;$ r d„ Z:Y nw xY wdZ
dZ? G d„ d e@¦ « ZA G d!„ d"eA¦ « ZBdS )#z‰
requests.adapters
~~~~~~~~~~~~~~~~~
This module contains the transport adapters that Requests uses to define
and maintain connections.
é N)ÚPoolManagerÚproxy_from_url)ÚHTTPResponse)Ú parse_url)ÚTimeout)ÚRetry)ÚClosedPoolError)ÚConnectTimeoutError)Ú HTTPError)Ú
MaxRetryError)ÚNewConnectionError)Ú
ProxyError)Ú
ProtocolError)ÚReadTimeoutError)ÚSSLError)Ú
ResponseError)ÚLocationValueErroré )ÚResponse)ÚurlparseÚ
basestring)ÚDEFAULT_CA_BUNDLE_PATHÚextract_zipped_pathsÚget_encoding_from_headersÚprepend_scheme_if_neededÚget_auth_from_urlÚ
urldefragauthÚselect_proxy)ÚCaseInsensitiveDict)Úextract_cookies_to_jar) ÚConnectionErrorÚConnectTimeoutÚReadTimeoutr r Ú
RetryErrorÚ
InvalidSchemaÚInvalidProxyURLÚ
InvalidURL)Ú_basic_auth_str)ÚSOCKSProxyManagerc ó — t d¦ « ‚)Nz'Missing dependencies for SOCKS support.)r% )ÚargsÚkwargss úq/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/requests/adapters.pyr) r) . s € ÝÐEÑFÔFÐFó Fé
c ó4 ‡ — e Zd ZdZˆ fd„Z dd„Zd„ Zˆ xZS ) ÚBaseAdapterzThe Base Transport Adapterc óV •— t t | ¦ « ¦ « d S ©N)Úsuperr1 Ú__init__)ÚselfÚ __class__s €r- r5 zBaseAdapter.__init__: s% ø€ Ý
�k˜4Ñ Ô ×)Ò)Ñ+Ô+Ð+Ð+Ð+r. FNTc ó — t ‚)aC Sends PreparedRequest object. Returns Response object.
:param request: The :class:`PreparedRequest ` being sent.
:param stream: (optional) Whether to stream the request content.
:param timeout: (optional) How long to wait for the server to send
data before giving up, as a float, or a :ref:`(connect timeout,
read timeout) ` tuple.
:type timeout: float or tuple
:param verify: (optional) Either a boolean, in which case it controls whether we verify
the server's TLS certificate, or a string, in which case it must be a path
to a CA bundle to use
:param cert: (optional) Any user-provided SSL certificate to be trusted.
:param proxies: (optional) The proxies dictionary to apply to the request.
©ÚNotImplementedError)r6 ÚrequestÚstreamÚtimeoutÚverifyÚcertÚproxiess r- ÚsendzBaseAdapter.send= s
€ õ "Ð!r. c ó — t ‚)z!Cleans up adapter specific items.r9 ©r6 s r- ÚclosezBaseAdapter.closeO s € å!Ð!r. ©FNTNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r5 rA rD Ú
__classcell__©r7 s @r- r1 r1 7 sk ø€ € € € € Ø$Ð$ð,ð ,ð ,ð ,ð ,ð @DØ $ð"ð "ð "ð "ð$"ð "ð "ð "ð "ð "ð "r. r1 c ó„ ‡ — e Zd ZdZg d¢Zeeeefˆ fd„ Zd„ Z d„ Z
efd„Zd„ Zd„ Z
d „ Zdd„Zd„ Zd
„ Zd„ Zd„ Zdd„Zˆ xZS )ÚHTTPAdaptera� The built-in HTTP Adapter for urllib3.
Provides a general-case interface for Requests sessions to contact HTTP and
HTTPS urls by implementing the Transport Adapter interface. This class will
usually be created by the :class:`Session ` class under the
covers.
:param pool_connections: The number of urllib3 connection pools to cache.
:param pool_maxsize: The maximum number of connections to save in the pool.
:param max_retries: The maximum number of retries each connection
should attempt. Note, this applies only to failed DNS lookups, socket
connections and connection timeouts, never to requests where data has
made it to the server. By default, Requests does not retry failed
connections. If you need granular control over the conditions under
which we retry a request, import urllib3's ``Retry`` class and pass
that instead.
:param pool_block: Whether the connection pool should block for connections.
Usage::
>>> import requests
>>> s = requests.Session()
>>> a = requests.adapters.HTTPAdapter(max_retries=3)
>>> s.mount('http://', a)
)Úmax_retriesÚconfigÚ_pool_connectionsÚ
_pool_maxsizeÚ_pool_blockc óB •— |t k rt dd¬¦ « | _ nt j |¦ « | _ i | _ i | _ t
t | ¦ « ¦ « || _ || _
|| _ | |||¬¦ « d S )Nr F)Úread©Úblock)
ÚDEFAULT_RETRIESr rN Úfrom_intrO Ú
proxy_managerr4 rM r5 rP rQ rR Úinit_poolmanager)r6 Úpool_connectionsÚpool_maxsizerN Ú
pool_blockr7 s €r- r5 zHTTPAdapter.__init__q sŸ ø€ ð �/Ò)Ð)Ý$ Q¨UÐ3Ñ3Ô3ˆDÔÐå$œ~¨kÑ:Ô:ˆDÔØˆŒØˆÔå
�k˜4Ñ Ô ×)Ò)Ñ+Ô+Ð+à!1ˆÔØ)ˆÔØ%ˆÔà×ÒÐ.°ÀJÐÑOÔOÐOÐOÐOr. c ó* ‡ — ˆ fd„‰ j D ¦ « S )Nc ó4 •— i | ]}|t ‰|d ¦ « “ŒS r3 )Úgetattr)Ú.0Úattrr6 s €r- ú
z,HTTPAdapter.__getstate__..„ s' ø€ ÐKÐKÐK°D�•g˜d D¨$Ñ/Ô/ÐKÐKÐKr. )Ú __attrs__rC s `r- Ú__getstate__zHTTPAdapter.__getstate__ƒ s ø€ ØKÐKÐKÐK¸D¼NÐKÑKÔKÐKr. c óÆ — i | _ i | _ | ¦ « D ]\ }}t | ||¦ « Œ| | j | j | j ¬¦ « d S )NrU )rY rO ÚitemsÚsetattrrZ rP rQ rR )r6 Ústaterb Úvalues r- Ú__setstate__zHTTPAdapter.__setstate__† sz € ð ˆÔ؈Œà Ÿ;š;™=œ=ð 'ð '‰KˆD�%Ý�D˜$ Ñ&Ô&Ð&Ð&à×Ò˜dÔ4°dÔ6HØ$(Ô$4ð ñ 6ô 6ð 6ð 6ð 6r. c ó\ — || _ || _ || _ t d|||ddœ|¤Ž| _ dS )a Initializes a urllib3 PoolManager.
This method should not be called from user code, and is only
exposed for use when subclassing the
:class:`HTTPAdapter `.
:param connections: The number of urllib3 connection pools to cache.
:param maxsize: The maximum number of connections to save in the pool.
:param block: Block when no free connections are available.
:param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager.
T)Ú num_poolsÚmaxsizerV ÚstrictN© )rP rQ rR r Úpoolmanager)r6 Úconnectionsrn rV Úpool_kwargss r- rZ zHTTPAdapter.init_poolmanager’ sT € ð "-ˆÔØ$ˆÔØ ˆÔå&ð