/opt/support/venv/lib/python3.13/site-packages/urllib3/__pycache__
NameSizeModeActions
connection.cpython-313.pyc392910644editdlrm
connectionpool.cpython-313.pyc391000644editdlrm
exceptions.cpython-313.pyc174020644editdlrm
fields.cpython-313.pyc115870644editdlrm
filepost.cpython-313.pyc34760644editdlrm
poolmanager.cpython-313.pyc239020644editdlrm
response.cpython-313.pyc585540644editdlrm
_base_connection.cpython-313.pyc69470644editdlrm
_collections.cpython-313.pyc231230644editdlrm
_request_methods.cpython-313.pyc99410644editdlrm
_version.cpython-313.pyc7810644editdlrm
__init__.cpython-313.pyc71040644editdlrm
Edit: /opt/support/venv/lib/python3.13/site-packages/urllib3/__pycache__/poolmanager.cpython-313.pyc (23902B)
i] SSKJr SSKrSSKrSSKrSSKrSSKJr SSKJ r SSK J r J r SSK Jr SSKJr SS KJrJrJr SS KJrJrJrJr SS KJr SS KJr SS KJr SSK J!r! SSK"J#r# SSK$J%r%J&r& \RN(a SSK(r(SSK)J*r* /SQr+\RX"\-5r.Sr/Sr0"SS\Rb5r2SSjr3\Rh"\3\25\Rh"\3\25S.r5\\S.r6"SS\5r7"SS\75r8SSjr9g) ) annotationsN) TracebackType)urljoin)HTTPHeaderDictRecentlyUsedContainer)RequestMethods) ProxyConfig)HTTPConnectionPoolHTTPSConnectionPoolport_by_scheme)LocationValueError MaxRetryErrorProxySchemeUnknownURLSchemeUnknown)BaseHTTPResponse)_TYPE_SOCKET_OPTIONS)connection_requires_http_tunnel)Retry)Timeout)Url parse_url)Self) PoolManager ProxyManagerproxy_from_url) key_file cert_file cert_reqsca_certs ca_cert_data ssl_versionssl_minimum_versionssl_maximum_version ca_cert_dir ssl_context key_passwordserver_hostnamei@c<\rSrSr%SrS\S'S\S'S\S'S\S 'S \S 'S \S 'S\S'S\S'S\S'S\S'S\S'S\S'S\S'S\S'S\S'S\S'S\S'S\S'S\S 'S!\S"'S#\S$'S!\S%'S&\S''S(\S)'S!\S*'S+\S,'S\S-'S\S.'S\S/'S0rg1)2PoolKey8z All known keyword arguments that could be provided to the pool manager, its pools, or the underlying connections. All custom key schemes should include the fields in this key at a minimum. str key_schemekey_host int | Nonekey_portzTimeout | float | int | None key_timeoutzRetry | bool | int | None key_retriesz bool | None key_blockztuple[str, int] | Nonekey_source_address str | None key_key_filekey_key_password key_cert_file key_cert_reqs key_ca_certszstr | bytes | Nonekey_ca_cert_datazint | str | Nonekey_ssl_versionzssl.TLSVersion | Nonekey_ssl_minimum_versionkey_ssl_maximum_versionkey_ca_cert_dirssl.SSLContext | Nonekey_ssl_context key_maxsizez!frozenset[tuple[str, str]] | None key_headers Url | None key__proxykey__proxy_headersProxyConfig | Nonekey__proxy_configz_TYPE_SOCKET_OPTIONS | Nonekey_socket_optionskey__socks_optionszbool | str | Nonekey_assert_hostnamekey_assert_fingerprintkey_server_hostname key_blocksizeN)__name__ __module__ __qualname____firstlineno____doc____annotations____static_attributes__rOE/opt/support/venv/lib/python3.13/site-packages/urllib3/poolmanager.pyr*r*8sOM--**..  ((%%2222**2299))3399**&&##rWr*cUR5nUSR5US'USR5US'SH.nX2;dM X#cM[X#R55X#'M0 UR S5nUb[ U5US'[ UR55HnURU5USU-'M URHnXR;dM SX%'M UR S5c [US'U"S0UD6$) a Create a pool key out of a request context dictionary. According to RFC 3986, both the scheme and host are case-insensitive. Therefore, this function normalizes both before constructing the pool key for an HTTPS request. If you wish to change this behaviour, provide alternate callables to ``key_fn_by_scheme``. :param key_class: The class to use when constructing the key. This should be a namedtuple with the ``scheme`` and ``host`` keys at a minimum. :type key_class: namedtuple :param request_context: A dictionary-like object that contain the context for a request. :type request_context: dict :return: A namedtuple that can be used as a connection pool key. :rtype: PoolKey schemehost)headers_proxy_headers_socks_optionsNsocket_optionskey_rNrO) copylower frozensetitemsgettuplelistkeyspop_fields_DEFAULT_BLOCKSIZE) key_classrequest_contextcontextkey socket_optsfields rX_default_key_normalizerrr_s .""$G)//1GHfo++-GFO? >gl6$W\%7%7%9:GL? ++./K$)+$6 !GLLN# ' C 0 $""  !GN# {{?#+#5  w rWhttphttpscZ^\rSrSr%SrSrS\S'SrS\S'SSU4SjjjrSS jr SS jr SSS jjr SS jr SSS jjr SSjrSSjrSS SjjrS!SjrS"SjrS#S$SjjrSrU=r$)%ra Allows for arbitrary requests while transparently keeping track of necessary connection pools for you. :param num_pools: Number of connection pools to cache before discarding the least recently used pool. :param headers: Headers to include with all requests, unless other headers are given explicitly. :param \**connection_pool_kw: Additional parameters are used to create fresh :class:`urllib3.connectionpool.ConnectionPool` instances. Example: .. code-block:: python import urllib3 http = urllib3.PoolManager(num_pools=2) resp1 = http.request("GET", "https://google.com/") resp2 = http.request("GET", "https://google.com/mail") resp3 = http.request("GET", "https://yahoo.com/") print(len(http.pools)) # 2 NrDproxyrG proxy_configc 0>[TU]U5 SU;aDUSn[U[5(d*[R"U5nUR 5nXCS'X0lU [U5Ul[Ul [R 5Ul g)Nretries) super__init__ isinstancerfrom_intraconnection_pool_kwrpoolspool_classes_by_schemekey_fn_by_scheme)self num_poolsr\rr{ __class__s rXr}PoolManager.__init__s ! * *(3Ggu--..1%7%<%<%>"079-"4 *95 '=# 0 5 5 7rWcU$NrOrs rX __enter__PoolManager.__enter__s rWc$UR5 g)NF)clear)rexc_typeexc_valexc_tbs rX__exit__PoolManager.__exit__s rWc"URUnUcURR5nURS5c [US'SHnUR US5 M US:Xa[ HnUR US5 M U"X#40UD6$)a Create a new :class:`urllib3.connectionpool.ConnectionPool` based on host, port, scheme, and any additional pool keyword arguments. If ``request_context`` is provided, it is provided as keyword arguments to the pool class used. This method is used to actually create the connection pools handed out by :meth:`connection_from_url` and companion methods. It is intended to be overridden for customization. N blocksize)rZr[portrt)rrrarerkri SSL_KEYWORDS)rrZr[rrmpool_clsrokws rX _new_poolPoolManager._new_pools .2-H-H-P  ""55::$*$4f!!%%oh&?&E&E&GLD"&"&++O<"     ) *002#4488@#"6* *'8,,X,WWrWcURR URRU5nU(a UsSSS5 $USnUSnUSnURXEXbS9nX0RU'SSS5 U$!,(df  W$=f)z Get a :class:`urllib3.connectionpool.ConnectionPool` based on the provided pool key. ``pool_key`` should be a namedtuple that only contains immutable objects. At a minimum it must have the ``scheme``, ``host``, and ``port`` fields. NrZr[rr)rlockrer)rrrmpoolrZr[rs rXr$PoolManager.connection_from_pool_keyXsZZ__::>>(+D _%X.F"6*D"6*D>>&>VD#'JJx  _ s$A<-A<< B cx[U5nURURURURUS9$)a Similar to :func:`urllib3.connectionpool.connection_from_url`. If ``pool_kwargs`` is not provided and a new pool needs to be constructed, ``self.connection_pool_kw`` is used to initialize the :class:`urllib3.connectionpool.ConnectionPool`. If ``pool_kwargs`` is provided, it is used instead. Note that if a new pool does not need to be created for the request, the provided ``pool_kwargs`` are not used. )rrZr)rrr[rrZ)rurlrus rXconnection_from_urlPoolManager.connection_from_urlrs: cN(( FFk)  rWcURR5nU(a%UR5Hup4UcX# M XBU'M U$![a M$f=f)z Merge a dictionary of override values for self.connection_pool_kw. This does not modify self.connection_pool_kw and returns a new dict. Any keys in the override dictionary with a value of ``None`` are removed from the merged dictionary. )rrardKeyError)roverridebase_pool_kwargsrovalues rXrPoolManager._merge_pool_kwargsse 22779 &nn. =,1-2S)/  $sA  AAc~URcg[URURUR5(+$)z Indicates if the proxy requires the complete destination URL in the request. Normally this is only needed when not using an HTTP CONNECT tunnel. F)rxrryrZ)r parsed_urls rX!_proxy_requires_url_absolute_form-PoolManager._proxy_requires_url_absolute_forms: :: 2 JJ)):+<+<   rWc [U5nURc[R"S[SS9 UR UR URURS9nSUS'SUS'S U;aURUS 'URU5(aUR"X40UD6nOUR"XR40UD6nU=(a UR5nU(dU$[X(5nURS :Xa&S nSUS '[US 5R!5US 'UR#S UR$5n ['U [(5(d[(R*"XS9n U R,(akUR/U5(dUUS R15n US H5n U R35U R,;dM#U R5U S5 M7 XS 'U R7XXvS9n XS 'X4S'[>RASX(5 UR=5 UR"X40UD6$![8a' U R:(aUR=5 eUs$f=f)a Same as :meth:`urllib3.HTTPConnectionPool.urlopen` with custom cross-host redirect logic and only sends the request-uri portion of the ``url``. The given ``url`` parameter must be absolute, such that an appropriate :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it. Na URLs without a scheme (ie 'https://') are deprecated and will raise an error in a future version of urllib3. To avoid this DeprecationWarning ensure all URLs start with 'https://' or 'http://'. Read more in this issue: https://github.com/urllib3/urllib3/issues/2920)category stacklevel)rrZFassert_same_hostredirectr\i/GETbodyr{)r)response_poolzRedirecting %s -> %s)!rrZrrrrr[rr\rurlopen request_uriget_redirect_locationrstatusr_prepare_for_method_changerer{r~rrremove_headers_on_redirect is_same_hostrarbri incrementrraise_on_redirect drain_connloginfo) rmethodrrrrconnrredirect_locationr{ new_headersheaders rXrPoolManager.urlopens= cN 88  MMA,  ((affQXX(N!& : B  LLByM  1 1! 4 4||F626H||FMM@R@H$I)G)G)I O$C; ??c !FBvJ*2i=9TTVByM&&H$4$45'5))nnW@G  - -d6G6G 7 7 Y-,,.KY-<<>W%G%GGOOFD1((yM ''h'SG 9 !: '@||F<<< ((##%O  s-H>>.I/.I/)rrrr) N)rintr\typing.Mapping[str, str] | Noner typing.AnyreturnNone)rr)rztype[BaseException] | NonerzBaseException | NonerzTracebackType | Nonerztyping.Literal[False]r) rZr,r[r,rrrmdict[str, typing.Any] | Nonerr )rrNrtN r[r5rr/rZr5rrrr )rmdict[str, typing.Any]rr )rr*rmrrr )rr,rrrr )rrrr)rrrboolT rr,rr,rrrrrr)rPrQrRrSrTrxrUryr}rrrrrrrrrrrrV __classcell__rs@rXrrsBE:'+L$+378818) 8  88>,&%   9= $7$7$7 $7 6 $7  $7L #48 === = 2 =  =:X4X X22G 6EI  %A  $ 4  ,  7;P=P= #P=/3P=BLP= P=P=rWrc^\rSrSrSrSS U4SjjjrS S U4SjjjrS S SjjrSSU4SjjjrSr U=r $)ria Behaves just like :class:`PoolManager`, but sends all requests through the defined proxy, using the CONNECT method for HTTPS URLs. :param proxy_url: The URL of the proxy to be used. :param proxy_headers: A dictionary containing headers that will be sent to the proxy. In case of HTTP they are being sent with each request, while in the HTTPS/CONNECT case they are sent only once. Could be used for proxy authentication. :param proxy_ssl_context: The proxy SSL context is used to establish the TLS connection to the proxy when using HTTPS proxies. :param use_forwarding_for_https: (Defaults to False) If set to True will forward requests to the HTTPS proxy to be made on behalf of the client instead of creating a TLS tunnel via the CONNECT method. **Enabling this flag means that request and response headers and content will be visible from the HTTPS proxy** whereas tunneling keeps request and response headers and content private. IP address, target hostname, SNI, and port are always visible to an HTTPS proxy even when this flag is disabled. :param proxy_assert_hostname: The hostname of the certificate to verify against. :param proxy_assert_fingerprint: The fingerprint of the certificate to verify against. Example: .. code-block:: python import urllib3 proxy = urllib3.ProxyManager("https://localhost:3128/") resp1 = proxy.request("GET", "https://google.com/") resp2 = proxy.request("GET", "https://httpbin.org/") print(len(proxy.pools)) # 1 resp3 = proxy.request("GET", "https://httpbin.org/") resp4 = proxy.request("GET", "https://twitter.com/") print(len(proxy.pools)) # 3 c  B>[U[5(a)URSURSUR3n OUn [ U 5n U RS;a[ U R5eU R(d0[R"U RS5n U RU S9n Xl U=(d 0Ul XPl [UUUU5UlURU S'URU S'URU S'[T U]@"X#40U D6 g) Nz://:rsr)r_proxyr] _proxy_config)r~r rZr[rrrr re_replacerx proxy_headersproxy_ssl_contextr ryr|r})r proxy_urlrr\rruse_forwarding_for_httpsproxy_assert_hostnameproxy_assert_fingerprintr str_proxy_urlrxrrs rXr}ProxyManager.__init__1s  i!3 4 4(//0INN3C1Y^^DTUM%M-( <<0 0$U\\2 2zz!%%ellB7DNNN-E *0b!2'  $ ! $  (,zz8$/3/A/A+,.2.?.??+ B/ABrWc>US:Xa[TU]XX4S9$[TU]URRURRURR US9$)Nru)r)r|rrxr[rrZ)rr[rrZrrs rXr!ProxyManager.connection_from_hostZse W 7/F0 w+ JJOOTZZ__djj.?.?[,  rWc~SS0n[U5RnU(aXCS'U(aURU5 U$)zx Sets headers needed by proxies: specifically, the Accept and Host headers. Only sets headers not provided by the user. Acceptz*/*Host)rnetlocupdate)rrr\headers_rs rX_set_proxy_headersProxyManager._set_proxy_headersjs<e$3&& %V   OOG $rWc >[U5n[URURUR5(d0UR SUR 5nURX&5US'[TU]$"X4SU0UD6$)z@Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute.r\r) rrrxryrZrer\rr|r)rrrrrrr\rs rXrProxyManager.urlopen{sn cN.tzz4;L;LahhWWffY 5G 33CAByMwvDXDDDrW)rxryrr)rNNNFNN)rr,rrr\rrrrr@rrrz"None | str | typing.Literal[False]rr5rrrrrrr)rr,r\rrztyping.Mapping[str, str]rr) rPrQrRrSrTr}rrrrVrrs@rXrrsA4r379=37).DH/3'C'C'C1 'C 7 'C 1 'C#''C B'C#-'C)'C 'C'CX #48      2     "DH!@ !$7; E E # E/3 EBL E  E ErWrc [SSU0UD6$)NrrO)r)rrs rXrrs  ,# , ,,rW)rlz type[PoolKey]rmrrr*)rr,rrrr): __future__r functoolsloggingtypingrtypesr urllib.parser _collectionsrr_request_methodsr connectionr connectionpoolr r r exceptionsrrrrrrutil.connectionr util.proxyr util.retryr util.timeoutrutil.urlrr TYPE_CHECKINGssltyping_extensionsr__all__ getLoggerrPrrrk NamedTupler*rrpartialrrrrrrOrWrXrs "  ?,#SS '17!$ & ;!  $f$N4 4 /D4  4 x   5w ?   6 @ #5?RSU=.U=p ME;ME`-rW