K ijddlmZddlZddlmZddlmZmZddlm Z eje ejejeje efZGddej"ZGd d ej"Zej(r(ddlZdd lmZdd lmZGd deZGddeeZyy)) annotationsN)_TYPE_SOCKET_OPTIONS)_DEFAULT_TIMEOUT _TYPE_TIMEOUT)Urlc6eZdZUded<ded<ded<ded<y ) ProxyConfigssl.SSLContext | None ssl_contextbooluse_forwarding_for_https"None | str | typing.Literal[False]assert_hostname str | Noneassert_fingerprintN__name__ __module__ __qualname____annotations__^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/urllib3/_base_connection.pyr r s&&""77""rr c@eZdZUded<ded<ded<ded<ded<y) _ResponseOptionsstrrequest_method request_urlr preload_contentdecode_contentenforce_content_lengthNrrrrrrs"  rr)Protocol)BaseHTTPResponsecpeZdZUded<ded<ded<ded<d ed <ded <d ed <ded<ded<ded<ded<ded< d(edddddd d)dZ d* d+dZd,dZ d-dd d d d! d.d"Zd/d#Z d,d$Z e d0d%Z e d0d&Z e d0d'Zy)1BaseHTTPConnectiontyping.ClassVar[int] default_port%typing.ClassVar[_TYPE_SOCKET_OPTIONS]default_socket_optionsrhostintportz None | floattimeout blocksizetuple[str, int] | Nonesource_address_TYPE_SOCKET_OPTIONS | Nonesocket_options Url | NoneproxyProxyConfig | None proxy_configr is_verifiedz bool | Noneproxy_is_verifiedNi .)r.r1r/r3r5r7cyNr) selfr+r-r.r1r/r3r5r7s r__init__zBaseHTTPConnection.__init__6srcyr;r)r<r+r-headersschemes r set_tunnelzBaseHTTPConnection.set_tunnelCs rcyr;rr<s rconnectzBaseHTTPConnection.connectKrFT)chunkedr r!r"cyr;r) r<methodurlbodyr?rFr r!r"s rrequestzBaseHTTPConnection.requestMsrcyr;rrCs r getresponsezBaseHTTPConnection.getresponse]rErcyr;rrCs rclosezBaseHTTPConnection.close_rErcy)zWhether 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. NrrCs r is_closedzBaseHTTPConnection.is_closedarErcy)zLWhether the connection is actively connected to any origin (proxy or target)NrrCs r is_connectedzBaseHTTPConnection.is_connectedhrErcy)zWhether 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. NrrCs rhas_connected_to_proxyz)BaseHTTPConnection.has_connected_to_proxylrErr;)r+rr- int | Noner.rr1r0r/r,r3r2r5r4r7r6returnNone)NNhttp) r+rr-rVr?typing.Mapping[str, str] | Noner@rrWrX)rWrX)NN)rHrrIrrJz_TYPE_BODY | Noner?rZrFr r r r!r r"r rWrX)rWr$)rWr )rrrrrr=rArDrKrMrOpropertyrQrSrUrrrr&r&#s** EE    ..33((&& $  &659!:= $/3    #  3  8  -   $7;    5         ' '+7;  "$(#'+/   $   5   " ! %)   7$      _  _    rr&c6eZdZUded<ded<ded<ded<d ed <d ed <d ed <d ed<ded<ded<ded<ded<d ed<d ed<d ed< dedddddddddddddddddddd ddZy)BaseHTTPSConnectionr'r(r)r*int | str | None cert_reqsrrrrr r ca_certs ca_cert_dirNone | str | bytes ca_cert_datarVssl_minimum_versionssl_maximum_version ssl_version cert_filekey_file key_passwordNi@.)r.r1r/r3r5r7r_rrserver_hostnamer r`rarcrdrerfrgrhricyr;r)r<r+r-r.r1r/r3r5r7r_rrrjr r`rarcrdrerfrgrhris rr=zBaseHTTPSConnection.__init__s2rr;).r+rr-rVr.rr1r0r/r,r3r2r5r4r7r6r_r^rrrrrjrr r r`rrarrcrbrdrVrerVrfr^rgrrhrrirrWrX)rrrrrr=rrrr]r]ss** EE$#;;&&**((('''%%  $  &659":= $/3*.BF-1*.15#'&*/3.2.2,0$(#''+1    #   3   8  - ( @ !+ ( /  !! "$# $-% &",' (",) **+ ,"- .!/ 0%1 23 rr]) __future__rtypingutil.connectionr util.timeoutrrutil.urlrUnionbytesIOAnyIterabler _TYPE_BODY NamedTupler r TYPE_CHECKINGsslr#responser$r&r]rrrr{s" 19 \\%6::!68NPSS T #&###!v((! *NXN`20(2mr