Current File : //usr/lib/python3/dist-packages/urllib3/__pycache__/_base_connection.cpython-312.pyc
�

�g��n�ddlmZddlZddlmZddlmZmZddlm	Z	ejeejejejeefZGd�dej"�ZGd	�d
ej"�Zej(r*ddlZddlmZmZddlmZGd
�de�ZGd�dee�Zyy)�)�annotationsN�)�_TYPE_SOCKET_OPTIONS)�_DEFAULT_TIMEOUT�
_TYPE_TIMEOUT)�Urlc�6�eZdZUded<ded<ded<ded<y	)
�ProxyConfig�ssl.SSLContext | None�ssl_context�bool�use_forwarding_for_https�None | str | Literal[False]�assert_hostname�
str | None�assert_fingerprintN��__name__�
__module__�__qualname__�__annotations__���:/usr/lib/python3/dist-packages/urllib3/_base_connection.pyr
r
s��&�&�"�"�0�0�"�"rr
c�@�eZdZUded<ded<ded<ded<ded<y)	�_ResponseOptions�str�request_method�request_urlr
�preload_content�decode_content�enforce_content_lengthNrrrrrrs"���������� � rr)�Literal�Protocol)�BaseHTTPResponsec�p�eZdZUded<ded<ded<ded<d	ed
<ded<ded
<ded<ded<ded<ded<ded<	d(edddddd�																	d)d�Z			d*									d+d�Zd,d�Z		d-dd d d d!�																	d.d"�Zd/d#�Z	d,d$�Z
ed0d%��Zed0d&��Z
ed0d'��Zy)1�BaseHTTPConnection�typing.ClassVar[int]�default_port�%typing.ClassVar[_TYPE_SOCKET_OPTIONS]�default_socket_optionsr�host�int�portzNone | float�timeout�	blocksize�tuple[str, int] | None�source_address�_TYPE_SOCKET_OPTIONS | None�socket_options�
Url | None�proxy�ProxyConfig | None�proxy_configr
�is_verifiedzbool | None�proxy_is_verifiedNi .)r/r2r0r4r6r8c��y�Nr)	�selfr,r.r/r2r0r4r6r8s	         r�__init__zBaseHTTPConnection.__init__7s��
rc��yr<r)r=r,r.�headers�schemes     r�
set_tunnelzBaseHTTPConnection.set_tunnelEs��
rc��yr<r�r=s r�connectzBaseHTTPConnection.connectN���rFT)�chunkedr r!r"c��yr<r)	r=�method�url�bodyr@rGr r!r"s	         r�requestzBaseHTTPConnection.requestQs��
rc��yr<rrDs r�getresponsezBaseHTTPConnection.getresponsebrFrc��yr<rrDs r�closezBaseHTTPConnection.closeerFrc��y)z�Whether the connection either is brand new or has been previously closed.
            If this property is True then both ``is_connected`` and ``has_connected_to_proxy``
            properties must be False.
            NrrDs r�	is_closedzBaseHTTPConnection.is_closedh��rc��y)zLWhether the connection is actively connected to any origin (proxy or target)NrrDs r�is_connectedzBaseHTTPConnection.is_connectedorSrc��y)z�Whether the connection has successfully connected to its proxy.
            This returns False if no proxy is in use. Used to determine whether
            errors are coming from the proxy layer or from tunnelling to the target origin.
            NrrDs r�has_connected_to_proxyz)BaseHTTPConnection.has_connected_to_proxysrSrr<)r,rr.�
int | Noner/rr2r1r0r-r4r3r6r5r8r7�return�None)NN�http)
r,rr.rXr@�typing.Mapping[str, str] | NonerArrYrZ)rYrZ)NN)rIrrJrrKz_TYPE_BODY | Noner@r\rGr
r r
r!r
r"r
rYrZ)rYr%)rYr
)rrrrrr>rBrErLrNrP�propertyrRrUrWrrrr'r'$s���*�*� E�E��	��	�
�	
���.�.�3�3���(�(���&�&�
 $�	�
&6�59�!�:=� $�/3�	��	��	�
#�	�3�
	��	�8�	��	�-�	��	�" $�7;� �	��	��	�5�		�
�	��
	�	�'+�7;�	�"�$(�#'�+/�	��	��	�$�		�
5�	��	�"�	�!�	�%)�	��	�"	�	�
�	�
�	�
�	_�
�	_�
�	�
�	rr'c�6�eZdZUded<ded<ded<ded<d	ed
<ded<d	ed
<d	ed<ded<ded<ded<ded<d	ed<d	ed<d	ed<	dedddddddddddddddddddd�																																													dd�Zy)�BaseHTTPSConnectionr(r)r*r+�int | str | None�	cert_reqsrrrrrr�ca_certs�ca_cert_dir�None | str | bytes�ca_cert_datarX�ssl_minimum_version�ssl_maximum_version�ssl_version�	cert_file�key_file�key_passwordNi@.)r/r2r0r4r6r8rarr�server_hostnamerrbrcrerfrgrhrirjrkc��yr<r)r=r,r.r/r2r0r4r6r8rarrrlrrbrcrerfrgrhrirjrks                       rr>zBaseHTTPSConnection.__init__�s��4
rr<).r,rr.rXr/rr2r1r0r-r4r3r6r5r8r7rar`rrrrrlrrrrbrrcrrerdrfrXrgrXrhr`rirrjrrkrrYrZ)rrrrrr>rrrr_r_zs���*�*� E�E�$�#�4�4�&�&�*�*�����(�(�(�'�'�'�%�%����� � �
 $�	�
&6�59�"�:=� $�/3�*.�;?�-1�*.�15�#'�&*�/3�.2�.2�,0�$(�#'�'+�1	��	��	�
#�	�3�
	��	�8�	��	�-�	�(�	�9�	�!+�	�(�	�/�	� !�!	�"$�#	�$-�%	�&",�'	�(",�)	�**�+	�,"�-	�.!�/	�0%�1	�2�3	rr_)�
__future__r�typing�util.connectionr�util.timeoutrr�util.urlr�Union�bytes�IO�Any�Iterabler�
_TYPE_BODY�
NamedTupler
r�
TYPE_CHECKING�ssl�typing_extensionsr#r$�responser%r'r_rrr�<module>r~s���"�
�1�9��
�\�\�%����6�:�:�!6�����8N�PS�S�
T�
�#�&�#�#�#�!�v�(�(�!�
����3�*�T�X�T�l3�0�(�3�{r