Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
odigos / etc / odigos-vmagent / instrumentations / python / urllib3 / __pycache__ / connectionpool.cpython-311.pyc
Size: Mime:
§

Õg©ãóÖ—ddlmZddlZddlZddlZddlZddlZddlZddlZddl	m
Zddlm
Z
ddlmZddlmZddlmZdd	lmZmZmZmZmZmZmZmZdd
lmZddlmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+ddl,m-Z-dd
l.m/Z/ddl0m1Z1ddl2m3Z3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:m;Z;m<Z<ddl=m>Z>m?Z?ddl=m@ZAddl=mBZBddlCmDZDejErddlFZFddlGmHZHddlmIZImJZJejKeL¦«ZMejNe<eOe;dfZPGd„d¦«ZQejRejShZTGd„deQe¦«ZUGd„deU¦«ZVd2d$„ZWejXd3d)„¦«Z@ejXd4d*„¦«Z@d5d+„Z@	d6d7d/„ZYd8d1„ZZdS)9é)ÚannotationsN©Útimeout)Ú
TracebackTypeé)Ú
_TYPE_BODY)ÚHTTPHeaderDict)ÚRequestMethods)ÚBaseSSLErrorÚBrokenPipeErrorÚDummyConnectionÚHTTPConnectionÚ
HTTPExceptionÚHTTPSConnectionÚProxyConfigÚ_wrap_proxy_error)Úport_by_scheme)
ÚClosedPoolErrorÚEmptyPoolErrorÚ
FullPoolErrorÚHostChangedErrorÚInsecureRequestWarningÚLocationValueErrorÚ
MaxRetryErrorÚNewConnectionErrorÚ
ProtocolErrorÚ
ProxyErrorÚReadTimeoutErrorÚSSLErrorÚTimeoutError)ÚBaseHTTPResponse)Úis_connection_dropped)Úconnection_requires_http_tunnel)Ú_TYPE_BODY_POSITIONÚset_file_position)ÚRetry)ÚCertificateError)Ú_DEFAULT_TIMEOUTÚ
_TYPE_DEFAULTÚTimeout)ÚUrlÚ_encode_target)Ú_normalize_host)Ú	parse_url)Úto_str)ÚSelf)ÚBaseHTTPConnectionÚBaseHTTPSConnectioncóZ—eZdZUdZdZded<ejZddd„Z	dd„Z
dd„Zdd„Zdd„Z
dS)ÚConnectionPoola;
    Base class for all connection pools, such as
    :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.

    .. note::
       ConnectionPool.urlopen() does not normalize or percent-encode target URIs
       which is useful if your target server doesn't support percent-encoded
       target URIs.
    Nú
str | NoneÚschemeÚhostÚstrÚportú
int | NoneÚreturnÚNonecóƗ|std¦«‚t||j¬¦«|_||_t||j¬¦« ¦«|_dS)NzNo host specified.©r6)rr-r6r7r9Únormalize_hostÚlowerÚ_tunnel_host)Úselfr7r9s   ú=/tmp/pip-target-6culloxw/lib/python/urllib3/connectionpool.pyÚ__init__zConnectionPool.__init__Qsa€Øð	;Ý$Ð%9Ñ:Ô:Ð:å# D°´Ð=Ñ=Ô=ˆŒ	؈Œ	õ+¨4¸¼ÐDÑDÔD×JÒJÑLÔLˆÔÐÐócóP—t|¦«j›d|j›d|j›dS)Nz(host=z, port=ú))ÚtypeÚ__name__r7r9©rBs rCÚ__str__zConnectionPool.__str__^s.€Ýt‘*”*Ô%ÐOÐO¨T¬YÐOÐOÀÄÐOÐOÐOÐOrEr0có—|S©N©rJs rCÚ	__enter__zConnectionPool.__enter__as€ØˆrEÚexc_typeútype[BaseException] | NoneÚexc_valúBaseException | NoneÚexc_tbúTracebackType | Noneútyping.Literal[False]có.—| ¦«dS)NF)Úclose)rBrPrRrTs    rCÚ__exit__zConnectionPool.__exit__ds€ð	

Š
‰ŒˆàˆurEcó—dS©zD
        Close all pooled connections and disable the pool.
        NrNrJs rCrXzConnectionPool.closenó€€€rErM)r7r8r9r:r;r<)r;r8)r;r0)rPrQrRrSrTrUr;rV©r;r<)rIÚ
__module__Ú__qualname__Ú__doc__r6Ú__annotations__ÚqueueÚ	LifoQueueÚQueueClsrDrKrOrYrXrNrErCr4r4Cs¬€€€€€€ððð€FÐÐÐÑØŒ€HðMðMðMðMðMðPðPðPðPððððððððððððððrEr4cóʗeZdZUdZdZeZded<dedddddddf	dHd„Z	dId „Z
dJdKd"„ZdLd&„ZdMd'„Z
dMd(„ZdNd+„ZdOd0„Zdddeddd1d1d1f	dPd<„ZdQd=„ZdRd>„Zdddd1d1eddddd1d1fdSdG„ZdS)TÚHTTPConnectionPoola
    Thread-safe connection pool for one host.

    :param host:
        Host used for this HTTP Connection (e.g. "localhost"), passed into
        :class:`http.client.HTTPConnection`.

    :param port:
        Port used for this HTTP Connection (None is equivalent to 80), passed
        into :class:`http.client.HTTPConnection`.

    :param timeout:
        Socket timeout in seconds for each individual connection. This can
        be a float or integer, which sets the timeout for the HTTP request,
        or an instance of :class:`urllib3.util.Timeout` which gives you more
        fine-grained control over request timeouts. After the constructor has
        been parsed, this is always a `urllib3.util.Timeout` object.

    :param maxsize:
        Number of connections to save that can be reused. More than 1 is useful
        in multithreaded situations. If ``block`` is set to False, more
        connections will be created but they will not be saved once they've
        been used.

    :param block:
        If set to True, no more than ``maxsize`` connections will be used at
        a time. When no free connections are available, the call will block
        until a connection has been released. This is a useful side effect for
        particular multithreaded situations where one does not want to use more
        than maxsize connections per host to prevent flooding.

    :param headers:
        Headers to include with all requests, unless other headers are given
        explicitly.

    :param retries:
        Retry configuration to use by default with requests in this pool.

    :param _proxy:
        Parsed proxy URL, should not be used directly, instead, see
        :class:`urllib3.ProxyManager`

    :param _proxy_headers:
        A dictionary with proxy headers, should not be used directly,
        instead, see :class:`urllib3.ProxyManager`

    :param \**conn_kw:
        Additional parameters are used to create fresh :class:`urllib3.connection.HTTPConnection`,
        :class:`urllib3.connection.HTTPSConnection` instances.
    Úhttpz4type[BaseHTTPConnection] | type[BaseHTTPSConnection]Ú
ConnectionClsNrFr7r8r9r:rú_TYPE_TIMEOUT | NoneÚmaxsizeÚintÚblockÚboolÚheadersútyping.Mapping[str, str] | NoneÚretriesúRetry | bool | int | NoneÚ_proxyú
Url | NoneÚ_proxy_headersÚ
_proxy_configúProxyConfig | NoneÚconn_kwú
typing.Anycó¨—t |||¦«tj||¦«t|t¦«st	j|¦«}|€tj}||_||_	| 
|¦«|_||_||_
|	pi|_|
|_t!|¦«D]}|j d¦«Œd|_d|_||_|j
r9|j dg¦«|j
|jd<|j|jd<|j}
t-j|t0|
¦«dS)NrÚsocket_optionsÚproxyÚproxy_config)r4rDr
Ú
isinstancer*Ú
from_floatr&ÚDEFAULTrrprdÚpoolrlr{Ú
proxy_headersr|ÚrangeÚputÚnum_connectionsÚnum_requestsrwÚ
setdefaultÚweakrefÚfinalizeÚ_close_pool_connections)rBr7r9rrjrlrnrprrrtrurwÚ_r€s              rCrDzHTTPConnectionPool.__init__±sQ€õ	×Ò  d¨DÑ1Ô1Ð1ÝÔ  gÑ.Ô.Ð.å˜'¥7Ñ+Ô+ð	2ÝÔ(¨Ñ1Ô1ˆGàˆ?Ý”mˆGàˆŒ؈Œà8<¿
º
ÀgÑ8NÔ8NˆŒ	؈Œ
àˆŒ
Ø+Ð1¨rˆÔØ)ˆÔõw‘”ð	 ð	 ˆAØŒIMŠM˜$ÑÔÐÐð !ˆÔØˆÔØˆŒàŒ:ð	=ð
ŒL×#Ò#Ð$4°bÑ9Ô9Ð9à$(¤JˆDŒL˜Ñ!Ø+/Ô+<ˆDŒL˜Ñ(ðŒyˆõ	Ô˜Õ6¸Ñ=Ô=Ð=Ð=Ð=rEr;r1có֗|xjdz
c_t d|j|j|jpd¦«|jd|j|j|jjdœ|j¤Ž}|S)z9
        Return a fresh :class:`HTTPConnection`.
        rz(Starting new HTTP connection (%d): %s:%sÚ80)r7r9rrN)	r„ÚlogÚdebugr7r9rhrÚconnect_timeoutrw©rBÚconns  rCÚ	_new_connzHTTPConnectionPool._new_connîs‹€ð	
ÐÔ Ñ!ÐÔݏ	Š	Ø6ØÔ ØŒIØŒIÐ˜ñ		
ô	
ð	
ð"ˆtÔ!ð
ؔؔؔLÔ0ð
ð
ðŒlð	
ð
ˆðˆrEúfloat | Nonecó¾—d}|j€t|d¦«‚	|j |j|¬¦«}nG#t$rt|d¦«d‚t
j$r|jrt|d¦«d‚YnwxYw|rCt|¦«r4t 
d|j¦«| ¦«|p| 
¦«S)a™
        Get a connection. Will return a pooled connection if one is available.

        If no connections are available and :prop:`.block` is ``False``, then a
        fresh connection is returned.

        :param timeout:
            Seconds to wait before giving up and raising
            :class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and
            :prop:`.block` is ``True``.
        NzPool is closed.)rlrzHPool is empty and a new connection can't be opened due to blocking mode.z Resetting dropped connection: %s)r€rÚgetrlÚAttributeErrorrbÚEmptyrr"rrŽr7rXr’)rBrr‘s   rCÚ	_get_connzHTTPConnectionPool._get_conns€ðˆàŒ9ÐÝ! $Ð(9Ñ:Ô:Ð:ð	Ø”9—=’= t¤z¸7=ÑCÔCˆDˆDøåð	Eð	Eð	EÝ! $Ð(9Ñ:Ô:ÀÐDåŒ{ð	ð	ð	ØŒzð
Ý$ØØ^ñôððð
ˆDð
	øøøðð	Õ)¨$Ñ/Ô/ð	ÝIŠIÐ8¸$¼)ÑDÔDÐDØJŠJ‰LŒLˆLàÐ't—~’~Ñ'Ô'Ð's›!=½ABÂBr‘úBaseHTTPConnection | Noner<cóŽ—|j¥	|j |d¬¦«dS#t$rYnztj$ri|r| ¦«|jrt|d¦«d‚t 	d|j
|j ¦«¦«YnwxYw|r| ¦«dSdS)aä
        Put a connection back into the pool.

        :param conn:
            Connection object for the current host and port as returned by
            :meth:`._new_conn` or :meth:`._get_conn`.

        If the pool is already full, the connection is closed and discarded
        because we exceeded maxsize. If connections are discarded frequently,
        then maxsize should be increased.

        If the pool is closed, then the connection will be closed and discarded.
        NF©rlz>Pool reached maximum size and no more connections are allowed.zLConnection pool is full, discarding connection: %s. Connection pool size: %s)r€rƒr–rbÚFullrXrlrrÚwarningr7Úqsizers  rCÚ	_put_connzHTTPConnectionPool._put_conn(sü€ðŒ9Ð ð
Ø”	—
’
˜d¨%
Ñ0Ô0Ð0ؐøÝ!ð
ð
ð
àÝ”:ð
ð
ð
àð!Ø—J’J‘L”LLà”:ð å'ØØXñôð ð õ
—’ØbØ”IØ”I—O’OÑ%Ô%ñôðððð
øøøð&ð	ØJŠJ‰LŒLˆLˆLˆLð	ð	s‰'§
B*³A4B*Â)B*có—dS)úU
        Called right before a request is made, after the socket is created.
        NrNrs  rCÚ_validate_connz!HTTPConnectionPool._validate_connSr\rEcó—dSrMrNrs  rCÚ_prepare_proxyz!HTTPConnectionPool._prepare_proxyXs€àˆrEÚ
_TYPE_TIMEOUTr*cóÀ—|tur|j ¦«St|t¦«r| ¦«St	j|¦«S)z:Helper that always returns a :class:`urllib3.util.Timeout`)r(rÚcloner}r*r~)rBrs  rCÚ_get_timeoutzHTTPConnectionPool._get_timeout\sU€àÕ&Ð&Ð&Ø”<×%Ò%Ñ'Ô'Ð'ågwÑ'Ô'ð	/Ø—=’=‘?”?Ð"õÔ% gÑ.Ô.Ð.rEÚerrú&BaseSSLError | OSError | SocketTimeoutÚurlÚ
timeout_valuecóȗt|t¦«rt||d|›d¦«|‚t|d¦«r$|jt
vrt||d|›d¦«|‚dSdS)zAIs the error actually a timeout? Will raise a ReadTimeout or passúRead timed out. (read timeout=rGÚerrnoN)r}Ú
SocketTimeoutrÚhasattrr¯Ú_blocking_errnos)rBr©r«r¬s    rCÚ_raise_timeoutz!HTTPConnectionPool._raise_timeouths—€õc=Ñ)Ô)ð	Ý"ؐcÐL¸MÐLÐLÐLñôàð
õ
3˜Ñ Ô ð	 S¤YÕ2BÐ%BÐ%BÝ"ؐcÐL¸MÐLÐLÐLñôàð
ð	ð	Ð%BÐ%BrETÚmethodÚbodyú_TYPE_BODY | NoneúRetry | NoneÚchunkedÚ
response_connÚpreload_contentÚdecode_contentÚenforce_content_lengthr!c
ó*—|xjdz
c_| |¦«}
|
 ¦«tj|
j¦«|_		| |¦«n7#ttf$r#}| 
|||j¬¦«‚d}~wwxYwn²#ttttttf$r†}|}t!|ttf¦«rt|¦«}t!|ttttf¦«r*|r(|jr!|jst'||jj¦«}|‚d}~wwxYw	| ||||||
||¬¦«nM#t,$rYnAt$r5}|jt.jkr|jt.jkr‚Yd}~nd}~wwxYw|
j}|js"|dkrt9||d|›d¦«‚||_	| ¦«}n2#ttf$r}| 
|||¬¦«‚d}~wwxYw||_|	|_||_ tB "d|j|j#|j$|||j%|j&|j'¦	«	|S)	a8

        Perform a request on a given urllib connection object taken from our
        pool.

        :param conn:
            a connection from one of our connection pools

        :param method:
            HTTP request method (such as GET, POST, PUT, etc.)

        :param url:
            The URL to perform the request on.

        :param body:
            Data to send in the request body, either :class:`str`, :class:`bytes`,
            an iterable of :class:`str`/:class:`bytes`, or a file-like object.

        :param headers:
            Dictionary of custom headers to send, such as User-Agent,
            If-None-Match, etc. If None, pool headers are used. If provided,
            these headers completely replace any pool-specific headers.

        :param retries:
            Configure the number of retries to allow before raising a
            :class:`~urllib3.exceptions.MaxRetryError` exception.

            Pass ``None`` to retry until you receive a response. Pass a
            :class:`~urllib3.util.retry.Retry` object for fine-grained control
            over different types of retries.
            Pass an integer number to retry connection errors that many times,
            but no other types of errors. Pass zero to never retry.

            If ``False``, then retries are disabled and any exception is raised
            immediately. Also, instead of raising a MaxRetryError on redirects,
            the redirect response will be returned.

        :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.

        :param timeout:
            If specified, overrides the default timeout for this one
            request. It may be a float (in seconds) or an instance of
            :class:`urllib3.util.Timeout`.

        :param chunked:
            If True, urllib3 will send the body using chunked transfer
            encoding. Otherwise, urllib3 will send the body using the standard
            content-length form. Defaults to False.

        :param response_conn:
            Set this to ``None`` if you will handle releasing the connection or
            set the connection to have the response release it.

        :param preload_content:
          If True, the response's body will be preloaded during construction.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.

        :param enforce_content_length:
            Enforce content length checking. Body returned by server must match
            value of Content-Length header, if present. Otherwise, raise error.
        r©r©r«r¬N)rµrnr¸rºr»r¼rr®rGz %s://%s:%s "%s %s HTTP/%s" %s %s)(r…r¨Ú
start_connectr*Úresolve_default_timeoutrrr¢r°rr³ÚOSErrorrr r'rr}r{Úhas_connected_to_proxyrr6Úrequestrr¯Ú
EPROTOTYPEÚ
ECONNRESETÚread_timeoutÚ	is_closedrÚgetresponserpÚ_connectionÚ_poolrrŽr7r9ÚversionÚstatusÚlength_remaining)rBr‘r´r«rµrnrprr¸r¹rºr»r¼Útimeout_objÚeÚnew_erÆÚresponses                  rCÚ
_make_requestz HTTPConnectionPool._make_request{s!€ð\	
ÐÔ˜QÑÐÔà×'Ò'¨Ñ0Ô0ˆØ×!Ò!Ñ#Ô#Ð#ÝÔ6°{Ô7RÑSÔSˆŒð	ð
Ø×#Ò# DÑ)Ô)Ð)Ð)øÝ!¥<Ð0ð
ð
ð
Ø×#Ò#¨¨sÀ$Ä,Ð#ÑOÔOÐOØøøøøð
øøøð*øõ
ÝÝÝÝÝð

ð	ð	ð	ð !ˆEݘ!lÕ,<Ð=Ñ>Ô>ð
$Ý  ™œõ؝Õ!3µ\Å8ÐLñôð
Dàð
Dà œJð
Dà/3Ô/Jð
Dõ*¨%°´Ô1BÑCÔCØˆKøøøøð#	øøøð*	ØLŠLØØØØØØ /Ø-Ø'=ð
ñ	
ô	
ð	
ð	
øõð	ð	ð	ØˆDÝð	ð	ð	ð
Œw%Ô*Ò*Ð*¨q¬w½%Ô:JÒ/JÐ/JØøøøøøøøøøð
	øøøð#Ô/ˆàŒ~ð
	(ð˜qÒ Ð Ý&ؘ#ÐOÀÐOÐOÐOñôðð(ˆDŒLð	Ø×'Ò'Ñ)Ô)ˆHˆHøÝgÐ&ð	ð	ð	Ø×Ò A¨3¸lÐÑKÔKÐKØøøøøð	øøøð
#ˆÔØ,ˆÔ؈Œå	Š	Ø.ØŒKØŒIØŒIØØØÔØŒOØÔ%ñ
	
ô
	
ð
	
ðˆsmÁA0Á/B(Á0B$ÂBÂB$Â$B(Â()EÃBEÅEÅE9Å9
GÆ	GÆ+F>Æ>GÇ7HÈH;ÈH6È6H;cóT—|j€dS|jdc}|_t|¦«dSr[)r€r‰)rBÚold_pools  rCrXzHTTPConnectionPool.close0s7€ðŒ9ÐØˆFà"œi¨Ðˆ$”)õ	  Ñ)Ô)Ð)Ð)Ð)rEcó:—| d¦«rdSt|¦«^}}}}}|pd}|t||¬¦«}|jr|st	j|¦«}n!|js|t	j|¦«krd}|||f|j|j|jfkS)zj
        Check if the given ``url`` is a member of the same host as this
        connection pool.
        ú/TrgNr>)Ú
startswithr.r-r9rr•r6r7)rBr«r6rŠr7r9s      rCÚis_same_hostzHTTPConnectionPool.is_same_host<s¿€ð
>Š>˜#ÑÔð	ؐ4õ%.¨c¡N¤NÐ!ˆ4˜ ØÐ!˜6ˆØÐÝ" 4°Ð7Ñ7Ô7ˆDðŒ9ð	˜Tð	Ý!Ô% fÑ-Ô-ˆDˆDØ”ð	˜t¥~Ô'9¸&Ñ'AÔ'AÒAÐA؈Dà˜˜dÐ#¨¬°T´YÀÄ	Ð'JÒJÐJrEÚredirectÚassert_same_hostÚpool_timeoutÚrelease_connúbool | NoneÚbody_posú_TYPE_BODY_POSITION | NoneÚresponse_kwcó†—t|¦«}|j}|€|j}t|t¦«st	j|||j¬¦«}|
€|
}
|r&| |¦«st|||¦«‚| 	d¦«rtt|¦«¦«}nt|j¦«}d}|
}t|j|j|¦«}|s.| ¦«}| |j¦«d}d}t'||¦«}	| |¦«}| |	¬¦«}|j|_|jg|re|jr^	| |¦«nG#t4t6t8f$r-}| ||jj|j¬¦«‚d}~wwxYw|
s|nd}|j|||f|||||||
|dœ|¤Ž}d}nL#t>$rd}d}‚t@tBt6tDt4tFtHtJf$r}d}|}t|t4tHf¦«rtG|¦«}t|t6tLt@tFtBf¦«r+|r)|jr"|j'stQ||jj¦«}n,t|t6tBf¦«rtEd	|¦«}| )||||tUj+¦«d
¬¦«}| ,¦«|}Yd}~nd}~wwxYw|s|r| -¦«d}d}|r| .|¦«n9#|s|r| -¦«d}d}|r| .|¦«wwxYw|s9t^ 0d|||¦«|j1|||||||f||	|
|||
|d
œ|¤ŽS|o| 2¦«}|rÚ|j3dkr%d}d}ti|¦« 5¦«}	| )||||¬¦«}n.#tl$r!|j7r| 8¦«‚|cYSwxYw| 8¦«| 9|¦«t^ :d||¦«|j1||||f|||||	|
|||
|dœ
|¤ŽStw|j <d¦«¦«}| =||j3|¦«r©	| )||||¬¦«}n.#tl$r!|j>r| 8¦«‚|cYSwxYw| 8¦«| ,|¦«t^ :d|¦«|j1||||f|||||	|
|||
|dœ
|¤ŽS|S)a…
        Get a connection from the pool and perform an HTTP request. This is the
        lowest level call for making a request, so you'll need to specify all
        the raw details.

        .. note::

           More commonly, it's appropriate to use a convenience method
           such as :meth:`request`.

        .. note::

           `release_conn` will only behave as expected if
           `preload_content=False` because we want to make
           `preload_content=False` the default behaviour someday soon without
           breaking backwards compatibility.

        :param method:
            HTTP request method (such as GET, POST, PUT, etc.)

        :param url:
            The URL to perform the request on.

        :param body:
            Data to send in the request body, either :class:`str`, :class:`bytes`,
            an iterable of :class:`str`/:class:`bytes`, or a file-like object.

        :param headers:
            Dictionary of custom headers to send, such as User-Agent,
            If-None-Match, etc. If None, pool headers are used. If provided,
            these headers completely replace any pool-specific headers.

        :param retries:
            Configure the number of retries to allow before raising a
            :class:`~urllib3.exceptions.MaxRetryError` exception.

            If ``None`` (default) will retry 3 times, see ``Retry.DEFAULT``. Pass a
            :class:`~urllib3.util.retry.Retry` object for fine-grained control
            over different types of retries.
            Pass an integer number to retry connection errors that many times,
            but no other types of errors. Pass zero to never retry.

            If ``False``, then retries are disabled and any exception is raised
            immediately. Also, instead of raising a MaxRetryError on redirects,
            the redirect response will be returned.

        :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.

        :param redirect:
            If True, automatically handle redirects (status codes 301, 302,
            303, 307, 308). Each redirect counts as a retry. Disabling retries
            will disable redirect, too.

        :param assert_same_host:
            If ``True``, will make sure that the host of the pool requests is
            consistent else will raise HostChangedError. When ``False``, you can
            use the pool on an HTTP proxy and request foreign hosts.

        :param timeout:
            If specified, overrides the default timeout for this one
            request. It may be a float (in seconds) or an instance of
            :class:`urllib3.util.Timeout`.

        :param pool_timeout:
            If set and the pool is set to block=True, then this method will
            block for ``pool_timeout`` seconds and raise EmptyPoolError if no
            connection is available within the time period.

        :param bool preload_content:
            If True, the response's body will be preloaded into memory.

        :param bool decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.

        :param release_conn:
            If False, then the urlopen call will not release the connection
            back into the pool once a response is received (but will release if
            you read the entire contents of the response such as when
            `preload_content=True`). This is useful if you're not preloading
            the response's content immediately. You will need to call
            ``r.release_conn()`` on the response ``r`` to return the connection
            back into the pool. If None, it takes the value of ``preload_content``
            which defaults to ``True``.

        :param bool chunked:
            If True, urllib3 will send the body using chunked transfer
            encoding. Otherwise, urllib3 will send the body using the standard
            content-length form. Defaults to False.

        :param int body_pos:
            Position to seek to in file-like body in the event of a retry or
            redirect. Typically this won't need to be set because urllib3 will
            auto-populate the value when needed.
        N)rÙÚdefaultrÖFrr¾)rrµrnr¸rpr¹rºr»TzConnection aborted.é)ÚerrorrÊÚ_stacktracez1Retrying (%r) after connection broken by '%r': %s)rrÛrÜr¸rÞrºr»i/ÚGET)rÑrÊzRedirecting %s -> %s)
rprÙrÚrrÛrÜr¸rÞrºr»zRetry-Afterz	Retry: %s)?r.r6rnr}r&Úfrom_intrprØrr×r/r,r«r#r{r|ÚcopyÚupdaterr%r¨r˜rrrÇr¤rrÁr°r³rÒrr rrrr'rrrÂrÚ	incrementÚsysÚexc_infoÚsleeprXrŸrrÚurlopenÚget_redirect_locationrÌr	Ú_prepare_for_method_changerÚraise_on_redirectÚ
drain_connÚsleep_for_retryrŽrmr•Úis_retryÚraise_on_status)rBr´r«rµrnrprÙrÚrrÛrÜr¸rÞrºr»ràÚ
parsed_urlÚdestination_schemer‘Úrelease_this_connÚhttp_tunnel_requiredr©Ú
clean_exitrÎrÏr¹rÑrÐÚredirect_locationÚhas_retry_afters                              rCrîzHTTPConnectionPool.urlopenRsw€õb˜s‘^”^ˆ
Ø'Ô.Ðàˆ?Ø”lˆGå˜'¥5Ñ)Ô)ð	WÝ”n W°xÈÌÐVÑVÔVˆGàÐØ*ˆLðð	7 D×$5Ò$5°cÑ$:Ô$:ð	7Ý" 4¨¨gÑ6Ô6Ð6ð>Š>˜#ÑÔð	)ݝ¨Ñ,Ô,Ñ-Ô-ˆCˆC嘜Ñ(Ô(ˆCàˆð)Ðå>ØŒJ˜Ô)Ð+=ñ 
ô 
Ðð$ð	/Ø—l’l‘n”nˆGØNŠN˜4Ô-Ñ.Ô.Ð.ðˆðˆ
õ% T¨8Ñ4Ô4ˆðe	%à×+Ò+¨GÑ4Ô4ˆKØ—>’>¨,>Ñ7Ô7ˆDà&Ô6ˆDŒLðŒzÐ%Ð*>Ð%À4Ä>Ð%ðØ×'Ò'¨Ñ-Ô-Ð-Ð-øÝ$¥g­}Ð=ðððØ×'Ò'Ø 4¤:¤>ÀÄð(ñôððøøøøð	øøøð)5Ð>˜D˜D¸$ˆMð*tÔ)ØØØð
ð$ØØØØØ+Ø /Ø-ð
ð
ðð
ð
ˆHð ˆJ‰Jøåð	ð	ð	àˆJØ %ÐØõ
ÝÝÝÝÝÝÝð	
ð$	ñ$	ð$	ðˆJØ ˆEݘ!lÕ,<Ð=Ñ>Ô>ð
$Ý  ™œÝØåÝ&Ý ÝÝ!ðñ	ô	ð
Dðð
Dð!œJð
Dð04Ô/Jð
Dõ*¨%°´Ô1BÑCÔCÝ˜E¥G­]Ð#;Ñ<Ô<ð
DÝ%Ð&;¸UÑCÔCà×'Ò'ؘ 5°Å#Ä,Á.Ä.ÐQRÔBSð(ñôˆGð
MŠM‰OŒOˆOðˆCˆCˆCˆCˆCˆCøøøøðI$	øøøðNð
)ð
ð Ø—J’J‘L”LLؐDØ$(Ð!à ð
%ð—’˜tÑ$Ô$Ð$øøðð
)ð
ð Ø—J’J‘L”LLؐDØ$(Ð!à ð
%ð—’˜tÑ$Ô$Ð$Ð$ð	
%øøøðð	åKŠKØCÀWÈcÐSVñ
ô
ð
ð 4”<ØØØØØØØ ðð Ø)Ø)ØØ!Ø /Ø-ðððððð
ð&%ÐI¨×)GÒ)GÑ)IÔ)IÐØð#	ØŒ #Ò%Ð%ààÝ(¨Ñ1Ô1×LÒLÑNÔNð
 Ø!×+Ò+¨F°CÀ(ÐRVÐ+ÑWÔWøÝ ð
 ð
 ð
 ØÔ,ðØ×'Ò'Ñ)Ô)Ð)ØØð	
 øøøð
×ÒÑ!Ô!Ð!Ø×#Ò# HÑ-Ô-Ð-ÝIŠIÐ,¨cÐ3DÑEÔEÐEؐ4”<ØØ!ØØð	ð
 Ø!Ø!1ØØ)Ø)ØØ!Ø /Ø-ðððððð
õ&˜xÔ/×3Ò3°MÑBÔBÑCÔCˆØ×Ò˜F H¤O°_ÑEÔEð	ð
 Ø!×+Ò+¨F°CÀ(ÐRVÐ+ÑWÔWøÝ ð
 ð
 ð
 ØÔ*ðØ×'Ò'Ñ)Ô)Ð)ØØð	
 øøøð
×ÒÑ!Ô!Ð!ØMŠM˜(Ñ#Ô#Ð#ÝIŠIk 3Ñ'Ô'Ð'ؐ4”<ØØØØð	ð
 Ø!Ø!1ØØ)Ø)ØØ!Ø /Ø-ðððððð
ð$ˆs{Ä'AG/Å/FÆG/ÆG	Æ(GÇG	Ç	$G/Ç-M/Ç/AL8È3C;L3Ì.M/Ì3L8Ì8M/Í/6N%Ð,QÑ(Q1Ñ0Q1ÔT3Ô3(UÕU)r7r8r9r:rrirjrkrlrmrnrorprqrrrsrtrorurvrwrx)r;r1rM)rr“r;r1)r‘r™r;r<©r‘r1r;r<)rr¥r;r*)r©rªr«r8r¬rir;r<)r‘r1r´r8r«r8rµr¶rnrorpr·rr¥r¸rmr¹r™rºrmr»rmr¼rmr;r!r])r«r8r;rm) r´r8r«r8rµr¶rnrorprqrÙrmrÚrmrr¥rÛr:rÜrÝr¸rmrÞrßrºrmr»rmràrxr;r!)rIr^r_r`r6rrhrar(rDr’r˜rŸr¢r¤r¨r³rÒrXrØrîrNrErCrfrfxs¾€€€€€€ð1ð1ðf€Fð	ððððñð Ø(8ØØØ37Ø-1Ø!Ø:>Ø,0ð;>ð;>ð;>ð;>ð;>ðzðððð($(ð$(ð$(ð$(ð$(ðL)ð)ð)ð)ðVðððð

ð
ð
ð
ð
/ð
/ð
/ð
/ððððð0#'Ø37Ø $Ø!1ØØ37Ø $Ø#Ø'+ðsðsðsðsðsðj
*ð
*ð
*ð
*ðKðKðKðKð4#'Ø37Ø-1ØØ!%Ø!1Ø#'Ø$(ØØ/3Ø $Ø#ðpðpðpðpðpðpðprErfcó|‡—eZdZUdZdZeZded<dedddddddddddddddddfd4ˆfd,„
Z	d5d/„Z
d6d1„Zd7ˆfd3„ZˆxZ
S)8ÚHTTPSConnectionPoola
    Same as :class:`.HTTPConnectionPool`, but HTTPS.

    :class:`.HTTPSConnection` uses one of ``assert_fingerprint``,
    ``assert_hostname`` and ``host`` in this order to verify connections.
    If ``assert_hostname`` is False, no verification is done.

    The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs``,
    ``ca_cert_dir``, ``ssl_version``, ``key_password`` are only used if :mod:`ssl`
    is available and are fed into :meth:`urllib3.util.ssl_wrap_socket` to upgrade
    the connection socket into an SSL socket.
    Úhttpsztype[BaseHTTPSConnection]rhNrFr7r8r9r:rrirjrkrlrmrnrorprqrrrsrtÚkey_filer5Ú	cert_fileÚ	cert_reqsúint | str | NoneÚkey_passwordÚca_certsÚssl_versionÚssl_minimum_versionússl.TLSVersion | NoneÚssl_maximum_versionÚassert_hostnameú"str | typing.Literal[False] | NoneÚassert_fingerprintÚca_cert_dirrwrxr;r<cóæ•—t¦«j|||||||||	f	i|¤Ž|
|_||_||_|
|_||_||_||_||_	||_
||_||_dSrM)
ÚsuperrDrrrrrrrrr
rr
)rBr7r9rrjrlrnrprrrtrrrrrrrr
rr
rrwÚ	__class__s                      €rCrDzHTTPSConnectionPool.__init__Ös¦ø€ð0	‰ŒÔØØØØØØØØØð	
ð	
ðð	
ð	
ð	
ð!ˆŒ
Ø"ˆŒØ"ˆŒØ(ˆÔØ ˆŒ
Ø&ˆÔØ&ˆÔØ#6ˆÔ Ø#6ˆÔ Ø.ˆÔØ"4ˆÔÐÐrEr‘rcó¶—|jr|jjdkrd}nd}| ||j|j|j¬¦«| ¦«dS)z5Establishes a tunnel connection through HTTP CONNECT.rrg)r6r7r9rnN)r{r6Ú
set_tunnelrAr9rÚconnect)rBr‘Ú
tunnel_schemes   rCr¤z"HTTPSConnectionPool._prepare_proxysi€àŒ:ð	#˜$œ*Ô+¨wÒ6Ð6Ø#ˆMˆMà"ˆMàŠØ ØÔ"Ø”ØÔ&ð		ñ	
ô	
ð	
ð	
Š‰ŒˆˆˆrEr2cóü—|xjdz
c_t d|j|j|jpd¦«|jr|jturtd¦«‚|j}|j}|j$|jj|jj}|jj}|jd|||j	j
|j|j|j
|j|j|j|j|j|j|j|jdœ|j¤ŽS)zL
        Return a fresh :class:`urllib3.connection.HTTPConnection`.
        rz)Starting new HTTPS connection (%d): %s:%sÚ443zCCan't connect to HTTPS URL because the SSL module is not available.N)r7r9rrrrrrrrr
rrr
rN)r„rrŽr7r9rhr
ÚImportErrorr{rrrrrrrrrr
rrr
rw)rBÚactual_hostÚactual_ports   rCr’zHTTPSConnectionPool._new_conns!€ð	
ÐÔ Ñ!ÐÔݏ	Š	Ø7ØÔ ØŒIØŒIÐ˜ñ		
ô	
ð	
ðÔ!ð	 TÔ%7½?Ð%JÐ%JÝØUñôð
ð œ9ˆØ”iˆØŒ:Ð! d¤j¤oÐ&AØœ*œ/ˆKØœ*œ/ˆKà!ˆtÔ!ð
ØØØ”LÔ0Ø”nØ”]ØÔ*Ø”nØ”]ØÔ(Ø Ô0Ø#Ô6ØÔ(Ø $Ô 8Ø $Ô 8ð
ð
ðŒlð
ð
ð	
rEr1cóê•—t¦« |¦«|jr| ¦«|js,|js't
jd|j›dt¦«dSdSdS)r¡z0Unverified HTTPS request is being made to host 'z†'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warningsN)
rr¢rÇrÚis_verifiedÚproxy_is_verifiedÚwarningsÚwarnr7r)rBr‘rs  €rCr¢z"HTTPSConnectionPool._validate_conn?sœø€õ	‰Œ×Ò˜tÑ$Ô$Ð$ðŒ>ð	ØLŠL‰NŒNˆNðÔð		¨Ô(>ð		ÝŒMð$ÀtÄyð$ð$ð$õ
'ñ
ô
ð
ð
ð
ð		ð		ð		ð		rE),r7r8r9r:rrirjrkrlrmrnrorprqrrrsrtrorr5rr5rrrr5rr5rrrr	r
r	rrr
r5rr5rwrxr;r<)r‘rr;r<)r;r2rý)rIr^r_r`r6rrhrar(rDr¤r’r¢Ú
__classcell__)rs@rCrÿrÿÅséø€€€€€€ððð€FØ/>€MÐ>Ð>Ð>Ñ>ð
 Ø(8ØØØ37Ø-1Ø!Ø:>Ø#Ø $Ø&*Ø#'Ø#Ø(,Ø59Ø59Ø>BØ)-Ø"&ð+/5ð/5ð/5ð/5ð/5ð/5ð/5ðb
ð
ð
ð
ð'
ð'
ð'
ð'
ðRðððððððððrErÿr«r8Úkwrxr;có¨—t|¦«^}}}}}|pd}|ptj|d¦«}|dkrt|fd|i|¤ŽSt	|fd|i|¤ŽS)a€
    Given a url, return an :class:`.ConnectionPool` instance of its host.

    This is a shortcut for not having to parse out the scheme, host, and port
    of the url before creating an :class:`.ConnectionPool` instance.

    :param url:
        Absolute URL string that must include the scheme. Port is optional.

    :param \**kw:
        Passes additional parameters to the constructor of the appropriate
        :class:`.ConnectionPool`. Useful for specifying things like
        timeout, maxsize, headers, etc.

    Example::

        >>> conn = connection_from_url('http://google.com/')
        >>> r = conn.request('GET', '/')
    rgéPrr9)r.rr•rÿrf)r«r!r6rŠr7r9s      rCÚconnection_from_urlr$Vs|€õ(!*¨#¡¤Ð€FˆAˆtT˜AØ
Ð
v€FØÐ1•>Ô% f¨bÑ1Ô1€DØ
ÒÐÝ" 4Ð9Ð9¨dÐ9°bÐ9Ð9Ð9å! $Ð8Ð8¨TÐ8°RÐ8Ð8Ð8rEr7r<r6r5có—dSrMrN©r7r6s  rCr-r-só€à€CrEcó—dSrMrNr&s  rCr-r-xr'rEcó’—t||¦«}|r4| d¦«r| d¦«r
|dd…}|S)z?
    Normalize hosts for comparisons and use with sockets.
    ú[ú]réÿÿÿÿ)r?r×Úendswithr&s  rCr-r-}sU€õ
˜$ Ñ'Ô'€Dð𐗒 Ñ$Ô$𨯪°sÑ);Ô);ðؐAbDŒzˆØ€KrEr€ú(HTTPConnectionPool | HTTPSConnectionPoolÚpathcóP—t|j|j|j|¬¦«jS)zZReturns the URL from a given connection pool. This is mainly used for testing and logging.)r6r7r9r/)r+r6r7r9r«)r€r/s  rCÚ_url_from_poolr1s$€õd”k¨¬	¸¼	ÈÐMÑMÔMÔQÐQrEúqueue.LifoQueue[typing.Any]cóŒ—		| d¬¦«}|r| ¦«Œ-#tj$rYdSwxYw)z2Drains a queue of connections and closes each one.TFr›N)r•rXrbr—)r€r‘s  rCr‰r‰–s_€ð
ð	Ø—8’8 %8Ñ(Ô(ˆDØð
Ø—
’
‘”ð	øõŒ;ð
ð
ð
Øˆˆð
øøøs‚.0°AÁA)r«r8r!rxr;rf)r7r<r6r5r;r<)r7r8r6r5r;r8)r7r5r6r5r;r5rM)r€r.r/r5r;r8)r€r2r;r<)[Ú
__future__rr¯ÚloggingrbrëÚtypingrr‡Úsocketrr°ÚtypesrÚ_base_connectionrÚ_collectionsr	Ú_request_methodsr
Ú
connectionrrr
rrrrrrÚ
exceptionsrrrrrrrrrrrrr rÑr!Úutil.connectionr"Ú
util.proxyr#Úutil.requestr$r%Ú
util.retryr&Úutil.ssl_match_hostnamer'Úutil.timeoutr(r)r*Úutil.urlr+r,r-r?r.Ú	util.utilr/Ú
TYPE_CHECKINGÚsslÚtyping_extensionsr0r1r2Ú	getLoggerrIrÚUnionÚfloatr¥r4ÚEAGAINÚEWOULDBLOCKr²rfrÿr$Úoverloadr1r‰rNrErCú<module>rOsWðØ"Ð"Ð"Ð"Ð"Ð"à€€€Ø€€€Ø€€€Ø
€
€
€
Ø
€
€
€
Ø€€€Ø€€€Ø+Ð+Ð+Ð+Ð+Ð+ØÐÐÐÐÐà(Ð(Ð(Ð(Ð(Ð(Ø(Ð(Ð(Ð(Ð(Ð(Ø,Ð,Ð,Ð,Ð,Ð,ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð	ð9Ð8Ð8Ð8Ð8Ð8ððððððððððððððððððððððððððððððð'Ð&Ð&Ð&Ð&Ð&Ø2Ð2Ð2Ð2Ð2Ð2Ø7Ð7Ð7Ð7Ð7Ð7Ø@Ð@Ð@Ð@Ð@Ð@Ð@Ð@ØÐÐÐÐÐØ5Ð5Ð5Ð5Ð5Ð5ØBÐBÐBÐBÐBÐBÐBÐBÐBÐBØ)Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ø7Ð7Ð7Ð7Ð7Ð7ØÐÐÐÐÐØÐÐÐÐÐà	ÔðJØ€J€J€Jà&Ð&Ð&Ð&Ð&Ð&àIÐIÐIÐIÐIÐIÐIÐIà€gÔ˜Ñ!Ô!€à”˜W e¨]¸DÐ@ÔA€
ð.ð.ð.ð.ð.ñ.ô.ð.ðd”L %Ô"3Ð4ÐðJ
ðJ
ðJ
ðJ
ðJ
˜¨ñJ
ôJ
ðJ
ðZNðNðNðNðNÐ,ñNôNðNðb9ð9ð9ð9ð:„ðððñ„ðð„ðððñ„ðððððð&HLðRðRðRðRðRð
ð
ð
ð
ð
ð
rE