2biLOSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJ r SSK J r SSKJr SSKJr SS KJr SSKr\R*r\r\rSSKJr SSK J!r! SSK"J#r#J$r$J%r%J&r& SSK'J(r(J)r)J*r* SSK+J,r,J-r-J.r.J/r/J0r0J1r1 SSK2J3r3J4r4 \Rj"\65r7SSS.r8\Rr"SSS5r:\Rv"S5r<"SS\\=5r"SS\5r>Sr?S r@"S!S"\=5rA\(d\Ar>\>rBg!\\4a Sr"S S \5rNf=f!\a "S S \5rNf=f!\a "SS\5rNf=f)#)absolute_importN)error)timeout)six)HTTPConnection) HTTPException)create_proxy_ssl_contextc\rSrSrSrg) BaseSSLErrorN__name__ __module__ __qualname____firstlineno____static_attributes__rڐ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/urllib3/connection.pyr r  rr c\rSrSrSrg)ConnectionError!rNrrrrrr!rrrc\rSrSrSrg)BrokenPipeError*rNrrrrrr*rrr)HTTPHeaderDict __version__)ConnectTimeoutErrorNewConnectionErrorSubjectAltNameWarningSystemTimeWarning) SKIP_HEADERSKIPPABLE_HEADERS connection)assert_fingerprintcreate_urllib3_context is_ipaddressresolve_cert_reqsresolve_ssl_versionssl_wrap_socket)CertificateErrormatch_hostnamePi)httphttpsiz[^-!#$%&'*+.^_`|~0-9a-zA-Z]c^\rSrSrSr\Sr\R\RS4/r Sr Sr Sr \S5r\R S 5rS rS rS rS rSrSrSU4SjjrSSjrSrU=r$)rLa Based on :class:`http.client.HTTPConnection` but provides an extra constructor backwards-compatibility layer between older and newer Pythons. Additional keyword parameters are used to configure attributes of the connection. Accepted parameters include: - ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool` - ``source_address``: Set the source address for the current connection. - ``socket_options``: Set specific options on the underlying socket. If not specified, then defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy. For example, if you wish to enable TCP Keep Alive in addition to the defaults, you might pass: .. code-block:: python HTTPConnection.default_socket_options + [ (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), ] Or you may want to disable the defaults by passing an empty list (e.g., ``[]``). r1rFNcP[R(dURSS5 URS5UlURSUR 5UlURSS5UlURSS5Ul[R"U/UQ70UD6 g)Nstrictsource_addresssocket_optionsproxy proxy_config) rPY2popgetr7default_socket_optionsr8r9r:_HTTPConnection__init__)selfargskws rr@HTTPConnection.__init__ssww FF8T "!ff%56!ff%5t7R7RSVVGT* FF>48  333rc8URRS5$)a? Getter method to remove any trailing dots that indicate the hostname is an FQDN. In general, SSL certificates don't include the trailing dot indicating a fully-qualified domain name, and thus, they don't validate properly when checked against a domain name that includes the dot. In addition, some servers may not expect to receive the trailing dot when provided. However, the hostname with trailing dot is critical to DNS resolution; doing a lookup with the trailing dot will properly only resolve the appropriate FQDN, whereas a lookup without a trailing dot will search the system's search domain list. Thus, it's important to keep the original host around for use only in those cases where it's appropriate (i.e., when doing DNS lookup to establish the actual TCP connection across which we're going to send HTTP requests). .) _dns_hostrstriprAs rhostHTTPConnection.hosts"~~$$S))rcXlg)z Setter for the `host` property. We assume that only urllib3 uses the _dns_host attribute; httplib itself only uses `host`, and it seems reasonable that other libraries follow suit. N)rG)rAvalues rrJrKs rc 0nUR(aURUS'UR(aURUS'[R"URUR 4UR 40UD6nU$![a* [USUR<SUR <S35e[an[USU-5eSnAff=f)z_Establish a socket connection and set nodelay settings on it. :return: New socket connection. r7r8zConnection to z timed out. (connect timeout=)z(Failed to establish a new connection: %sN) r7r8r'create_connectionrGportr SocketTimeoutr!rJ SocketErrorr")rAextra_kwconnes r _new_connHTTPConnection._new_conns    )-)<)>+HTTPConnection.putheader..s$KFq:a%:!{*::Fs-/z(urllib3.util.SKIP_HEADER only supports 'z', ''N) anyr? putheaderr ensure_strlowerr&rmjoinmaprxtitlesorted)rAheadervaluess rrHTTPConnection.putheaderstKFKKK  % %d [USS5b%URRUR5 Uc0nOUR 5nSSU5;a [ 5US'[ [U]#XX4S9 g)Nr_ user-agentc3j# UH)n[R"UR55v M+ g7frf)rrr)ryks rr{)HTTPConnection.request..s"K7aqwwy 9 97s13 User-Agent)bodyheaders) r[r_ settimeoutrcopy_get_default_user_agentsuperrrequest)rArprqrr __class__s rrHTTPConnection.requestsp 4 & 2 II  . ?GllnG K7K K$;$=GL ! nd+Fd+Trc DU=(d 0n[UVs/sH'n[R"UR55PM) sn5nSU;nSU;nUR XXxS9 SU;aUR S[ 55 UR5HupUR X5 M SU;aUR SS5 UR5 Ub[R[4-n [X;5(aU4nUHn U (dM [U [5(dU RS 5n [[U 55S S n [U R55nUS - nX- nUS - nUR!U5 M UR!S 5 g s snf)zk Alternative to the common request method, which sends the body with chunked encoding and not as one block zaccept-encodingrJ)skip_accept_encoding skip_hostrrztransfer-encodingzTransfer-EncodingchunkedNutf8s s0 )setrrrrorritems endheaders string_typesbytesrwencodehexlen bytearraysend)rArprqrrr header_keysrrrrMstringish_typeschunklen_strto_sends rrequest_chunkedHTTPConnection.request_chunkedsr -RgFg3>>!'')4gFG 0K?k)   .B   { * NN<)@)B C$]]_MF NN6 )- k 1 NN. :   !..%9O$00w!%//!LL0Ec%j/!"-#GNN$457" 7" '" ,?Gs.F)rGrar9r:r_r8r7)NN)rrrr__doc__port_by_scheme default_portsocket IPPROTO_TCP TCP_NODELAYr> is_verifiedproxy_is_verifiedr@propertyrJsetterrWr\rcrgrorrrr __classcell__)rs@rrrLs2"&)L &1163E3EqIJK4"**$ [[>3! N U% % rrc\rSrSrSr\SrSrSrSr Sr Sr Sr Sr SSSSS\RSS4SjrS SjrSrS rS rg) HTTPSConnectioniz Many of the parameters to this constructor are passed to the underlying SSL socket by means of :py:func:`urllib3.util.ssl_wrap_socket`. r2NFc  [R"XU4XgS.U D6 X0lX@lXPlXlXlSUlg)N)r6rr2)rr@key_file cert_file key_password ssl_contextserver_hostname _protocol) rArJrQrrrr6rrrrCs rr@HTTPSConnection.__init__.sD DWWTVW "(&.!rc pUc/URbURRnO [S5nXlX lX0lX@lX`lXplU=(a [RRU5Ul U=(a [RRU5Ul Xlg)zH This method should only be called once, before the connection is used. N)r verify_moder+rr cert_reqsrassert_hostnamer(ospath expanduserca_certs ca_cert_dir ca_cert_data) rArrrrrrr(rrs rset_certHTTPSConnection.set_certHs"  + ,,88 -d3  ""(."4 ARWW%7%7%A &J277+=+=k+J(rc UR5=UlnURnSnUR5(aNUR(aUR X!5=UlnSnUR 5 SUlURnUnURb URn[RR5[:nU(a.[R"SR![5["5 SnUR$c7Sn['[)UR*5[-UR.5S9UlUR$n[-UR.5UlUR2(dJUR4(d9UR6(d(U(a![9US5(aUR;5 [=UUR>UR@URBUR2UR4UR6UUUS9 UlU(aUR*c[9URS5(adURRE5S ;aF[R"S UR<S URRE5<S 3[F5 URH(a.[IURRKSS 9URH5 OUR0[LRN:wa[QUSS5(dURRSLayURRK5nURUSS5(d*[R"SR!U5[V5 [YXRR=(d U5 UR0[LRZ:H=(d URHSLUl.g)NFTrzWSystem time is way off (before {0}). This will probably lead to SSL verification errors) ssl_versionrload_default_certs) r_keyfilecertfilerrrrrr tls_in_tlsversion>TLSv1TLSv1.1zjNegotiating TLSv1/TLSv1.1 by default is deprecated and will be disabled in urllib3 v2.0.0. Connecting to 'z' with 'z;' can be enabled by explicitly opting-in with 'ssl_version') binary_formcheck_hostnamesubjectAltNamerCertificate for {0} has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.))/rWr_rJr\tls_in_tls_required_connect_tls_proxyr`rarZrdatetimedatetoday RECENT_DATEwarningswarnformatr$rr)r,rr+rrrrrhasattrrr-rrrrDeprecationWarningr( getpeercertssl CERT_NONEr[rr=r#_match_hostname CERT_REQUIREDr) rArUhostnamerr is_time_offdefault_ssl_contextcontextcerts rrgHTTPSConnection.connectis>>++ D99  " "''#'#:#:8#JJ D!  LLNDN((H"    +"22Omm))+k9  MM6&%!  $    #"& 5/0@0@A+DNN; D  ""/?  $$%%#!566  & & (#MM^^**]]((**+!   "   ( 9-- !!#';; MM)- 4993D3D3FH#    " "  %%$%79P9P    3== 0G%5u==$$E1 99((*D88,b11 ()/x(8) D"6"6"I/ J   3#4#4 4 3&&d2 rc URnURnU(a [UUUS9$[URUR UR URUR5n[UUR URURUUS9nUR[R:wao[USS5(d]UR"5nURSS5(d*[R "SR#U5[$5 ['Xa5 UR[R(:HUlU$)zI Establish a TLS connection to the proxy using the provided SSL context. )r_rr)r_rrrrrrFrrr)r:rr-r rrrrrrrrr[rr=rrrr#rrr)rArrUr:rrrs rr"HTTPSConnection._connect_tls_proxys*(( ".. # ('  /    NN MM        !]]((**$#    " "cmm 3G )5= = %%'D88,b11 ()/x(8) D +!,!8!8Crsa& '+M90 <