Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/requests/__pycache__/adapters.cpython-311.pyc
]j`S 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=dZ>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)PoolManagerproxy_from_url)HTTPResponse) parse_url)Timeout)Retry)ClosedPoolError)ConnectTimeoutError) HTTPError)
MaxRetryError)NewConnectionError)
ProxyError)
ProtocolError)ReadTimeoutError)SSLError)
ResponseError)LocationValueError )Response)urlparse
basestring)DEFAULT_CA_BUNDLE_PATHextract_zipped_pathsget_encoding_from_headersprepend_scheme_if_neededget_auth_from_url
urldefragauthselect_proxy)CaseInsensitiveDict)extract_cookies_to_jar) ConnectionErrorConnectTimeoutReadTimeoutr r
RetryError
InvalidSchemaInvalidProxyURL
InvalidURL)_basic_auth_str)SOCKSProxyManagerc t d )Nz'Missing dependencies for SOCKS support.)r% )argskwargss q/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/requests/adapters.pyr) r) . s EFFF F
c 4 e Zd ZdZ fdZ ddZd Z xZS ) BaseAdapterzThe Base Transport Adapterc V t t | d S N)superr1 __init__)self __class__s r- r5 zBaseAdapter.__init__: s%
k4 ))+++++r. FNTc t )aC Sends PreparedRequest object. Returns Response object.
:param request: The :class:`PreparedRequest <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) <timeouts>` 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 requeststreamtimeoutverifycertproxiess 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 $"