U f3"@s.UddlmZddlZddlZddlmZddlmZddlmZddl m Z m Z m Z ddl mZdd lmZdd lmZdd lmZmZdd lmZd dlmZmZmZmZd dlmZd dlmZm Z ej!rddlm"Z"m#Z#GdddZ$Gddde$Z%ej!r*e$ddZ&de'd<e%ddZ(de'd<dS)) annotationsN) HTTPException)ResponseNotReady) _TYPE_BODY)HTTPConnection ProxyConfigport_by_scheme) TimeoutError)BaseHTTPResponse)_TYPE_SOCKET_OPTIONS)_DEFAULT_TIMEOUT _TYPE_TIMEOUT)Url) _RequestError _TimeoutError send_requestsend_streaming_request)EmscriptenRequest)EmscriptenHttpResponseWrapperEmscriptenResponse)BaseHTTPConnectionBaseHTTPSConnectionc @sZeZdZUedZded<ded<ded<ded <d ed <d ed <d ed<ded<ded<ded<dZded<dZded<ded<d>edddddddd d d d dddd!d" d#d$Z d?dd%d&dd!d'd(d)Z d!d*d+d,Z d@dd-d-d-d.ddd/d&ddddd!d0 d1d2Z d3d*d4d5Z d!d*d6d7Zedd*d8d9Zedd*d:d;Zedd*drLrQrRpropertyrSrTrUr6r6r6r7rsV   "  "( rcs2eZdZUedZdZded<dZded<dZded<dZ ded <ded <ded <ded <d ed<dZ ded<dZ ded<dZ ded<ded<dZ ded<d'eddejdddddddddddddddddddddddddddddd dddddddddd d!fd"d#Zd(dddddddddd d$ d%d&ZZS))EmscriptenHTTPSConnectionhttpsNzint | str | None cert_reqsz str | Noneca_certs ca_cert_dirzNone | str | bytes ca_cert_data cert_filekey_file key_passwordztyping.Any | None ssl_context ssl_versionr9ssl_minimum_versionssl_maximum_versionz"None | str | typing.Literal[False]assert_hostnameassert_fingerprintri@)rr%r#r&r(r*r]rhriserver_hostnamerdr^r_r`rfrgrerarbrcrr!rr$zNone | _TYPE_SOCKET_OPTIONSr'r)r/)r r"rr%r#r&r(r*r]rhrirjrdr^r_r`rfrgrerarbrcr0c stj||||||||dd|_||_||_||_| |_| |_| |_| |_ ||_ ||_ ||_ |olt j||_|o~t j||_||_d|_d|_dS)N)r"rr%r#r&r(r*r\T)superr8r3rbrarcrdrjrhrirerfrgospath expanduserr^r_r`r]r,)r5r r"rr%r#r&r(r*r]rhrirjrdr^r_r`rfrgrerarbrc __class__r6r7r8s4 z"EmscriptenHTTPSConnection.__init__) rbrar]rcr^rhrir_r`r0c CsdSr;r6) r5rbrar]rcr^rhrir_r`r6r6r7set_certs z"EmscriptenHTTPSConnection.set_cert)r) NNNNNNNNN)rVrWrXr rr]rYr^r_r`rerfrgrir rrr8rq __classcell__r6r6ror7r[s^         B=r[r_supports_http_protocolr_supports_https_protocol)) __future__rrltyping http.clientrrZ_base_connectionrrPrrr exceptionsr responser Zutil.connectionr Z util.timeoutr rZutil.urlrfetchrrrrrLrrr TYPE_CHECKINGrrrr[rtrYrur6r6r6r7s.         \