U ì·êfã@sÌddlmZddlZddlmZddlmZmZddlm Z ej e ej ej eje efZGdd„dejƒZGd d „d ejƒZejrÈddlZdd lmZdd 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ÚboolÚuse_forwarding_for_httpsú"None | str | typing.Literal[False]Úassert_hostnameú str | NoneÚassert_fingerprintN©Ú__name__Ú __module__Ú __qualname__Ú__annotations__©rrúI/opt/alt/python38/lib/python3.8/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)ÚProtocol)ÚBaseHTTPResponsec @sBeZdZUded<ded<ded<ded<d ed <ded <d ed <ded<ded<ded<ded<ded<dd*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 | NoneÚproxy_is_verifiedNi .)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__6s zBaseHTTPConnection.__init__Úhttpztyping.Mapping[str, str] | None)r&r(ÚheadersÚschemer7cCsdSr8r)r9r&r(r<r=rrrÚ set_tunnelDszBaseHTTPConnection.set_tunnel)r7cCsdSr8r©r9rrrÚconnectMszBaseHTTPConnection.connectFT)Úchunkedrrrz_TYPE_BODY | None) ÚmethodÚurlÚbodyr<rArrrr7c CsdSr8r) r9rBrCrDr<rArrrrrrÚrequestPszBaseHTTPConnection.requestr cCsdSr8rr?rrrÚ getresponseaszBaseHTTPConnection.getresponsecCsdSr8rr?rrrÚclosedszBaseHTTPConnection.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_closedgszBaseHTTPConnection.is_closedcCsdS)zLWhether the connection is actively connected to any origin (proxy or target)Nrr?rrrÚ is_connectednszBaseHTTPConnection.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_proxyrsz)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 rrrr r Úca_certsÚ ca_cert_dirzNone | str | bytesÚ ca_cert_datar5Ússl_minimum_versionÚssl_maximum_versionÚ ssl_versionÚ cert_fileÚkey_fileÚ key_passwordNi@.)r)r,r*r.r0r2rMrrÚserver_hostnamer rNrOrPrQrRrSrTrUrVrrr+r'r-r/r1r6)r&r(r)r,r*r.r0r2rMrrrWr rNrOrPrQrRrSrTrUrVr7cCsdSr8r)r9r&r(r)r,r*r.r0r2rMrrrWr rNrOrPrQrRrSrTrUrVrrrr:’szBaseHTTPSConnection.__init__)N)rrrrrr:rrrrrLysL ýèrL)Ú __future__rÚtypingZutil.connectionrZ util.timeoutrrZutil.urlrÚUnionÚbytesÚIOÚAnyÚIterablerZ _TYPE_BODYÚ NamedTuplerrÚ TYPE_CHECKINGÚsslrÚresponser r!rLrrrrÚs       V