2biLO S SK Jr S SKrS SKrS SKrS SKrS SKrS SKrS SKJr S SKJ
r SSKJ
r
SSKJr SSKJr SS KJr S SKr\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 " \65 r7SSS.r8\Rr " SSS5 r:\Rv " S5 r< " S S\\=5 r " S S\5 r>S r?S r@ " S! S"\=5 rA\( d \Ar>\>rBg! \\4 a Sr " S
S\5 r Nf = f! \ a " S S
\5 r Nf = f! \ a " S S\5 r Nf = f)# )absolute_importN)error)timeout )six)HTTPConnection)
HTTPException)create_proxy_ssl_contextc \ rS rSrSrg)BaseSSLError N__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 r r c \ rS rSrSrg)ConnectionError! r Nr r r r r r ! r r r c \ rS rSrSrg)BrokenPipeError* r Nr r r r r r * r r r )HTTPHeaderDict__version__)ConnectTimeoutErrorNewConnectionErrorSubjectAltNameWarningSystemTimeWarning)SKIP_HEADERSKIPPABLE_HEADERS
connection)assert_fingerprintcreate_urllib3_contextis_ipaddressresolve_cert_reqsresolve_ssl_versionssl_wrap_socket)CertificateErrormatch_hostnameP i )httphttpsi z[^-!#$%&'*+.^_`|~0-9a-zA-Z]c ^ \ rS rSrSr\S r\R \R S4/r
SrSrS r
\S 5 r\R S 5 rS
rS rS rS
rS rS rSU 4S jjrSS jrSrU =r$ )r L a
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., ``[]``).
r1 r FNc P [ R ( d UR SS 5 UR S5 U l UR SU R
5 U l UR SS 5 U l UR SS 5 U l [ R " U /UQ70 UD6 g )Nstrictsource_addresssocket_optionsproxyproxy_config)r PY2popgetr7 default_socket_optionsr8 r9 r: _HTTPConnection__init__)selfargskws r r@ HTTPConnection.__init__s s wwFF8T" !ff%56 !ff%5t7R7RS VVGT*
FF>48 333r c 8 U R R S5 $ )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_hostrstriprA s r hostHTTPConnection.host s " ~~$$S))r c Xl g)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 )rA values r rJ rK s r c 0 nU R ( a U R US' U R ( a U R US' [ R " U R U R
4U R 40 UD6nU$ ! [ a* [ U SU R < SU R < S35 e[ a n[ U SU- 5 eSnAff = f)z_Establish a socket connection and set nodelay settings on it.
:return: New socket connection.
r7 r8 zConnection to z timed out. (connect timeout=)z(Failed to establish a new connection: %sN)r7 r8 r' create_connectionrG portr
SocketTimeoutr! rJ SocketErrorr" )rA extra_kwconnes r _new_connHTTPConnection._new_conn s
)-)<)