zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
U
 ý°dã@sÐddlmZddlZddlmZddlmZmZddlm    Z    ej
e ej ej eje efZGdd„dejƒZGd    d
„d
ejƒZejrÌddlZdd lmZmZdd lmZGd d„deƒZGdd„deeƒZdS)é)Ú annotationsNé)Ú_TYPE_SOCKET_OPTIONS)Ú_DEFAULT_TIMEOUTÚ _TYPE_TIMEOUT)ÚUrlc@s.eZdZUded<ded<ded<ded<d    S)
Ú ProxyConfigússl.SSLContext | NoneÚ ssl_contextÚboolZuse_forwarding_for_httpsúNone | str | Literal[False]Úassert_hostnameú
str | NoneÚassert_fingerprintN©Ú__name__Ú
__module__Ú __qualname__Ú__annotations__©rrúOd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\urllib3/_base_connection.pyr s
rc@s6eZdZUded<ded<ded<ded<ded<dS)    Ú_ResponseOptionsÚstrÚrequest_methodÚ request_urlr Úpreload_contentÚdecode_contentÚenforce_content_lengthNrrrrrrs
 
r)ÚLiteralÚProtocol)ÚBaseHTTPResponsec @sBeZdZUded<ded<ded<ded<d    ed
<ded <d ed <ded<ded<ded<ded<ded<d<eddddddœdddd ddddddœ    d d!„Zd=ddd#ddd$œd%d&„Zdd'œd(d)„Zd>d*d+d+d+d,œddd-d#dddddd.œ    d/d0„Zd1d'œd2d3„Z    dd'œd4d5„Z
e dd'œd6d7„ƒZ e dd'œd8d9„ƒZ e dd'œd:d;„ƒZdS)?Ú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_verifiedz bool | NoneZproxy_is_verifiedNé .)r)r,r*r.r0r2ú
int | NonerÚNone)    r&r(r)r,r*r.r0r2Úreturnc    CsdS©Nr)    Úselfr&r(r)r,r*r.r0r2rrrÚ__init__7s zBaseHTTPConnection.__init__Úhttpztyping.Mapping[str, str] | None)r&r(ÚheadersÚschemer7cCsdSr8r)r9r&r(r<r=rrrÚ
set_tunnelEszBaseHTTPConnection.set_tunnel)r7cCsdSr8r©r9rrrÚconnectNszBaseHTTPConnection.connectFT)Úchunkedrrrz_TYPE_BODY | None)    ÚmethodÚurlÚbodyr<rArrrr7c    CsdSr8r)    r9rBrCrDr<rArrrrrrÚrequestQszBaseHTTPConnection.requestr cCsdSr8rr?rrrÚ getresponsebszBaseHTTPConnection.getresponsecCsdSr8rr?rrrÚcloseeszBaseHTTPConnection.closecCsdS)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.
            Nrr?rrrÚ    is_closedhszBaseHTTPConnection.is_closedcCsdS)zLWhether the connection is actively connected to any origin (proxy or target)Nrr?rrrÚ is_connectedoszBaseHTTPConnection.is_connectedcCsdS)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.
            Nrr?rrrÚhas_connected_to_proxyssz)BaseHTTPConnection.has_connected_to_proxy)N)NNr;)NN)rrrrrr:r>r@rErFrGÚpropertyrHrIrJrrrrr!$sT
ýö"û    û
ó"r!c@sîeZdZUded<ded<ded<ded<d    ed
<d ed <d    ed <d    ed<ded<ded<ded<ded<d    ed<d    ed<d    ed<d'eddddddddddddddddddddœdddddd d!d"ddd    d    d d    d    ddddd    d    d    d#d$œd%d&„ZdS)(ÚBaseHTTPSConnectionr"r#r$r%zint | str | NoneÚ    cert_reqsr r rrr    r
Úca_certsÚ ca_cert_dirzNone | str | bytesÚ ca_cert_datar5Ússl_minimum_versionÚssl_maximum_versionÚ ssl_versionÚ    cert_fileÚkey_fileÚ key_passwordNr4.)r)r,r*r.r0r2rMr rÚserver_hostnamer
rNrOrPrQrRrSrTrUrVrrr+r'r-r/r1r6)r&r(r)r,r*r.r0r2rMr rrWr
rNrOrPrQrRrSrTrUrVr7cCsdSr8r)r9r&r(r)r,r*r.r0r2rMr rrWr
rNrOrPrQrRrSrTrUrVrrrr:“szBaseHTTPSConnection.__init__)N)rrrrrr:rrrrrLzsL
ýèrL)Ú
__future__rÚtypingZutil.connectionrZ util.timeoutrrZutil.urlrÚUnionÚbytesÚIOÚAnyÚIterablerZ
_TYPE_BODYÚ
NamedTuplerrÚ TYPE_CHECKINGÚsslZtyping_extensionsrrÚresponser r!rLrrrrÚ<module>s    
 V