
    *Gj8                     $   U d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
mZmZmZmZmZ ddlmZ ddlmZ ddlmZmZmZmZmZmZmZmZ ddlZddlmZm Z m!Z!m"Z" ddl#m$Z$ d	d
l%m&Z&m'Z'm(Z( d	dl)m*Z* d	dl+m,Z, d	dl-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJ d	dlKmLZLmMZM d	dlNmOZOmPZPmQZQmRZRmSZS d	dlTmUZUmVZVmWZW d	dlXmYZYmZZZm[Z[m\Z\m]Z] d	dl^m_Z_ d	dl`maZambZbmcZcmdZdmeZemfZfmgZgmhZhmiZimjZjmkZk d	dl'mlZlmmZmmnZnmoZo d	dlpmqZqmrZrmsZs d	dltmuZumvZv d	dlwmxZxmyZymzZzm{Z{m|Z|m}Z} dZ~erddlmZ neZej        dk    rerddlmZ  G d ded          Z G d  d!ed          Z ej        d"d"d"#           G d$ d%                      Z ed&d'(          Zee         ed)<    eh d*          Z ed+d,d"-          ZeePegef         Z G d. d/          Z G d0 d1eeeef         ee                   ZeeP         ZeeVe                  Z G d2 d3          Zej        dk    r1er/e'j        ddd4d5ed6e}d7emd8eZdz  d9ej        dz  d:ee         d;efd<ZdS e'j        ddd4d5ed6e}d7emd8eZdz  d9ej        dz  d:ed;efd=ZdS )>zHTTP Client for asyncio.    N)	AwaitableCallable	Coroutine	GeneratorIterableSequence)suppress)TracebackType)TYPE_CHECKINGAnyFinalGenericLiteral	TypedDictTypeVaroverload)CIMultiDict	MultiDictMultiDictProxyistr)URL   )hdrshttppayload)WebSocketDataQueue)AbstractCookieJar)ClientConnectionErrorClientConnectionResetErrorClientConnectorCertificateErrorClientConnectorDNSErrorClientConnectorErrorClientConnectorSSLErrorClientErrorClientHttpProxyErrorClientOSErrorClientPayloadErrorClientProxyConnectionErrorClientResponseErrorClientSSLErrorConnectionTimeoutErrorContentTypeError
InvalidURLInvalidUrlClientErrorInvalidUrlRedirectClientErrorNonHttpUrlClientErrorNonHttpUrlRedirectClientErrorRedirectClientErrorServerConnectionErrorServerDisconnectedErrorServerFingerprintMismatchServerTimeoutErrorSocketTimeoutErrorTooManyRedirectsWSMessageTypeErrorWSServerHandshakeError)ClientMiddlewareTypebuild_client_middlewares)ClientRequestClientResponseFingerprintRequestInfo_merge_ssl_params)DEFAULT_WS_CLIENT_TIMEOUTClientWebSocketResponseClientWSTimeout)HTTP_AND_EMPTY_SCHEMA_SETBaseConnectorNamedPipeConnectorTCPConnectorUnixConnector)	CookieJar)	_SENTINELDEBUGDEFAULT_CHUNK_SIZEEMPTY_BODY_METHODS	BasicAuthTimeoutHandlebasicauth_from_netrcget_env_proxy_for_urlnetrc_from_envsentinelstrip_auth_from_url)WS_KEYHttpVersionWebSocketReaderWebSocketWriter)WSHandshakeError
ws_ext_genws_ext_parse)TraceTraceConfig)JSONBytesEncoderJSONEncoderLooseCookiesLooseHeadersQueryStrOrURL)*r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r2   r0   r/   r1   r3   r4   r5   r6   r7   r8   r:   r=   r>   r?   r@   rF   rH   rI   rG   rC   ClientSessionClientTimeoutrD   requestr9   )
SSLContext      )Unpackc                      e Zd ZU eed<   eed<   eed<   edz  ed<   edz  ed<   ee	         dz  ed<   e
dz  ed<   eed	<   eed
<   e	ez  dz  ed<   edz  ed<   eed<   dez  eeged         f         z  ed<   eed<   edz  ed<   e
dz  ed<   ded<   eez  ez  ed<   e	dz  ed<   edz  ed<   eed<   edz  ed<   edz  ed<   edz  ed<   edz  ed<   edz  ed<   ee         dz  ed<   dS )_RequestOptionsparamsdatajsonNcookiesheadersskip_auto_headersauthallow_redirectsmax_redirectscompresschunked	expect100raise_for_statusread_until_eofproxy
proxy_authz ClientTimeout | _SENTINEL | Nonetimeoutsslserver_hostnameproxy_headerstrace_request_ctxread_bufsizeauto_decompressmax_line_sizemax_field_sizemax_headersmiddlewares)__name__
__module____qualname__rc   __annotations__r   ra   rb   r   strrO   boolintr   r>   r   rd   rh   r?   objectr   r;        V/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/aiohttp/client.pyrn   rn      s        MMM
III
IIID    D    }t++++
d
Dj4D[OOOTkHn-=y-N$OOOOOd?D    ////	d	[	((((4Z$&&&&*D[   :$Jt./$666666r   rn   Ftotalc                   B   e Zd ZU eed<   ee         ed<   ded<   edz  ed<   eed<   eed<   edz  ed	<   edz  ed
<   edz  ed<   e	ed<   e
dz  ed<   edz  ed<   edz  ed<   eez  ez  ed<   edz  ed<   edz  ed<   edz  ed<   edz  ed<   e
dz  ed<   eed<   eed<   dS )_WSConnectOptionsmethod	protocolszClientWSTimeout | _SENTINELr   Nreceive_timeout	autocloseautoping	heartbeatru   originro   rs   r}   r~   r   
verify_sslfingerprintssl_contextr   r   rx   max_msg_size)r   r   r   r   r   r   floatr   rO   rc   rb   rd   rh   r?   bytesr   r   r   r   r   r      sB        KKK}****T\!!!OOONNNt|
d
$JMMMD    d?D    	d	[	((((td""""4Z$&&&&MMMr   r   T)auto_attribsfrozenslotsc                   n    e Zd ZU dZedz  ed<   dZedz  ed<   dZedz  ed<   dZedz  ed<   dZ	eed<   dS )rf   Nr   connect	sock_readsock_connect   ceil_threshold)
r   r   r   r   r   r   r   r   r   r   r   r   r   rf   rf      sr         E54< GUT\   "Iut|"""!%L%$,%%%NEr   rf   i,     )r   r   DEFAULT_TIMEOUT>   GETPUTHEADTRACEDELETEOPTIONS_RetType_coz.ClientResponse | ClientWebSocketResponse[bool])bound	covariantc            D           e Zd ZU dZ eg d          ZdZej        dz  e	d<   dZ
edz  e	d<   	 dddddddddej        deeeej        dddededdddeddd	d
 deddedz  dedz  dej        dz  dedz  dedz  dedz  dedz  dee         dz  dedz  dededz  dee         dee         dee         de de!dz  de"de"e#ege$d         f         z  de%e&z  d e%dz  d!e'e(z  d"e"d#e"d$e"d%e)e*         dz  d&e+d'e+d(e+d)e+d*e,d+e-e.         d,e&dz  e%z  d-dfBd.Z/d/ed          d-dfd0Z0e1rd1ed2e2d-df fd3Z3e4fd4e2d-dfd5Z5e6j7        d6k    re8rd7ed8ed9e9e:         d-d:fd;Z;nd7ed8ed9e2d-d:fd<Z;d=ed-e<fd>Z=ddddddddd?dddddddedddddddddddddd@d7ed=edAe>dBe2dCe2dedz  dedz  dee         dz  dedz  dDe"dEe+dFee"z  dz  dGe"dz  dHe"dde"z  e#ege$d         f         z  dIe"dedz  dedz  d!e(e&z  dJe"dz  dKe?dz  dLe@dz  dMe@e"z  eAz  dNedz  dOedz  dPe'd&e+dz  d"e"dz  d'e+dz  d(e+dz  d)e+dz  d+e-e.         dz  d-efBdQZBe6j7        d6k    rbe8r`eCdRdSd8edTeDd         d9e9eE         d-dUfdV            ZFeCd8edTeDd         d9e9eE         d-dWfdX            ZFeCdRdSd8edTe"d9e9eE         d-dYfdZ            ZFeGjH        deddddddddddddddddd[d\dd]d8ed7ed^ee         d!eIe&z  d_e%dz  d`e"dae"dbe%dz  dedz  dcedz  dAe>dedz  dedz  dedz  dMe@e"z  eAz  dJe"dz  dKe?dz  dLe@dz  dNedz  dOedz  dFe+dde+dTe"d-dYf0deZFe6j7        d6k    rbe8r`eCdRdSd8edTeDd         d9e9eE         d-dffdg            ZJeCd8edTeDd         d9e9eE         d-dhfdi            ZJeCdRdSd8edTe"d9e9eE         d-djfdk            ZJeGjH        deddddddddddddddddd[d\dd]d8ed7ed^ee         d!eIe&z  d_e%dz  d`e"dae"dbe%dz  dedz  dcedz  dAe>dedz  dedz  dedz  dMe@e"z  eAz  dJe"dz  dKe?dz  dLe@dz  dNedz  dOedz  dFe+dde+dTe"d-djf0dlZJdedz  d-dmfdnZKdoed-edz  fdpZLe6j7        d6k    rse8rqd8ed9e9e:         d-d:fdqZMd8ed9e9e:         d-d:fdrZNd8ed9e9e:         d-d:fdsZOd8ed9e9e:         d-d:fdtZPd8ed9e9e:         d-d:fduZQd8ed9e9e:         d-d:fdvZRd8ed9e9e:         d-d:fdwZSndddxd8edDe"d9e2d-d:fdyZMddxd8edDe"d9e2d-d:fdzZNddxd8edDe"d9e2d-d:fd{ZOdd|d8edBe2d9e2d-d:fd}ZPdd|d8edBe2d9e2d-d:fd~ZQdd|d8edBe2d9e2d-d:fdZRd8ed9e2d-d:fdZSddZTeUd-e"fd            ZVeUd-edz  fd            ZWeUd-e!fd            ZXeUd-eYe+e+f         fd            ZZeUd-e"fd            Z[e[j\        d2e"d-dfd            Z[eUd-ej        fd            Z]eUd-e(fd            Z^eUdd            Z_eUd-ee`         fd            ZaeUd-edz  fd            ZbeUd-efd            ZceUd-e"fd            ZdeUd-e"e#ege$d         f         z  fd            ZeeUd-e"fd            ZfeUd-e"fd            ZgeUd-e)e*         fd            ZhddZiddZjdeek         dz  dekdz  deldz  d-dfdZmddZndeek         dz  dekdz  deldz  d-dfdZo xZpS )re   z/First-class interface for making HTTP requests.) 	_base_url_base_url_origin_source_traceback
_connector_loop_cookie_jar_connector_owner_default_auth_version_json_serialize_json_serialize_bytes_requote_redirect_url_timeout_raise_for_status_auto_decompress
_trust_env_default_headers_skip_auto_headers_request_class_response_class_ws_response_class_trace_configs_read_bufsize_max_line_size_max_field_size_max_headers_resolve_charset_default_proxy_default_proxy_auth_retry_connection_middlewaresrequote_redirect_urlNr   r   TFi     c                     dS )Nzutf-8r   )rbs     r   <lambda>zClientSession.<lambda>U  s    7 r   r   )	connectorlooprr   rs   r}   r~   rt   ru   json_serializejson_serialize_bytesrequest_classresponse_classws_response_classversion
cookie_jarconnector_ownerr{   read_timeoutconn_timeoutr   r   	trust_envr   trace_configsr   r   r   r   fallback_charset_resolverr   ssl_shutdown_timeoutbase_urlr   r   rr   rs   r}   r~   rt   ru   r   r   r   r   r   r   r   r   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r   returnc                   d | _         |	||j        }|pt          j                    }|t	          |t
                    r%|| _        |d n|                                | _        nHt          |          | _        | j                                        | _        | j        j	        s
J d            | j        .| j        j
                            d          st          d          |t          u s|t          | _        |t          ur<t!          j        dt$          d           t'          j        | j        |          | _        |<t'          j        | j        |          | _        t!          j        d	t$          d           net	          |t*                    s t          d
t-          |           d          || _        |t          urt          d          |t          d          | t          urt!          j        dt$          d           |t/          ||           }|j        |urt1          d          || _        |                                r+t5          j        t9          j        d                    | _        |t?          |          }|| _         |r| j         !                    |           |	t!          j        dt$          d           |t!          j        dt$          d           || _         || _"        |	| _#        || _$        |
| _%        || _&        || _'        || _(        || _)        || _*        || _+        || _,        || _-        || _.        |rt_          |          }!nt_                      }!|!| _0        |tc          d |D                       | _2        ntc                      | _2        || _3        || _4        || _5        |pg | _6        | j6        D ]}"|"7                                 || _8        || _9        || _:        d| _;        || _<        d S )Nz Only absolute URLs are supported/z!base_url must have a trailing '/'z8read_timeout is deprecated, use timeout argument instead   
stacklevelr   )r   z8conn_timeout is deprecated, use timeout argument insteadztimeout parameter cannot be of z. type, please use 'timeout=ClientTimeout(...)'zGread_timeout and timeout parameters conflict, please setup timeout.readzJconn_timeout and timeout parameters conflict, please setup timeout.connectzSThe ssl_shutdown_timeout parameter is deprecated and will be removed in aiohttp 4.0)r   r   z0Session and connector has to use same event loopr   r   The 'auth' parameter is deprecated and will be removed in v4; pass headers={'Authorization': aiohttp.encode_basic_auth(login, password)} insteadThe 'proxy_auth' parameter is deprecated and will be removed in v4; pass proxy_headers={'Proxy-Authorization': aiohttp.encode_basic_auth(login, password)} insteadc              3   4   K   | ]}t          |          V  d S Nr   .0is     r   	<genexpr>z)ClientSession.__init__.<locals>.<genexpr>  s(      /S/SAQ/S/S/S/S/S/Sr   T)=r   r   asyncioget_running_loop
isinstancer   r   r   r   absolutepathendswith
ValueErrorrT   r   r   warningswarnDeprecationWarningattrevolverf   typerH   RuntimeError	get_debug	tracebackextract_stacksys	_getframer   rJ   r   update_cookiesr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   	frozensetr   r   r   r   r   freezer   r   r   r   r   )#selfr   r   r   rr   rs   r}   r~   rt   ru   r   r   r   r   r   r   r   r   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r   real_headerstrace_configs#                                      r   __init__zClientSession.__init__5  s   L 15<$ 1w/11z(C88)1DN,4,<DD(//BSBSD!! ]]DN$(N$9$9$;$;D!>*NN,NNN*>%dn.A.J.J3.O.O%@AAAh'/+DM8++N&    
 !%DM N N N' $DM< P P PN&     g}55  >d7mm > > >   $DM8++ #  
 ' &    x//Me"    $0D  I ?$&&QRRR
>> 	O%.%<S]1=M=M%N%ND""---J% 	5++G444MF #    !MF #    $ /!-%9"!1 /#%9")+-'  	)-8-A-ALL&==L2>(&//S/SAR/S/S/S&S&SD##&/kkD#+-"3+1r / 	" 	"L!!!! 9##- '+'r   clsc                 P    t          j        d| j         dt          d           d S )NzInheritance class z" from ClientSession is discouragedr   r   )r  r	  r   r
  )r  s    r   __init_subclass__zClientSession.__init_subclass__  s;    QQQQ	
 	
 	
 	
 	
 	
r   namevalc                     || j         vr t          j        d| dt          d           t	                                          ||           d S )NzSetting custom ClientSession.z attribute is discouragedr   r   )ATTRSr  r	  r
  super__setattr__)r  r  r  	__class__s      r   r#  zClientSession.__setattr__  s_    4:%%SDSSS&    
 GGc*****r   	_warningsc                     | j         sMd| i} |j        d| t          fi | | dd}| j        
| j        |d<   | j                            |           d S d S )NsourcezUnclosed client session zUnclosed client session)client_sessionmessagesource_traceback)closedr	  ResourceWarningr   r   call_exception_handler)r  r%  kwargscontexts       r   __del__zClientSession.__del__  s    { 	7%FIN3433_ HN   *.:STTG%1.2.D*+J--g66666	7 	7r   ri   r   urlr.  _RequestContextManagerc                     d S r   r   r  r   r1  r.  s       r   rg   zClientSession.request  s	    
 (+sr   c                 :    t           | j        ||fi |          S )zPerform HTTP request.)r2  _requestr4  s       r   rg   zClientSession.request  s(     *-$-*N*Nv*N*NOOOr   
str_or_urlc                 t    t          |          }| j        r!|j        s| j                            |          S |S r   )r   r   r  join)r  r7  r1  s      r   
_build_urlzClientSession._build_url  s;    *oo> 	,#, 	,>&&s+++
r   
   )ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ro   rp   rq   rv   rw   rx   ry   rz   r|   r   r   r   r   r   r   r   c                   <=>K    j         rt          d          t          ||||          }|	t          j        dt
          d           |t          j        dt
          d           ||t          d          |> j        t          j	        | j                  }nt          j
        | j                  }t          |t                    s|t          j        dt
                     d	}!g }" j        }#|pi }                     |          }	                      |          }$n"# t          $ r}%t#          |          |%d }%~%ww xY w j        J |$j         j        j        vrt+          |$          |d
 |D              j        z  }&n j        r j        }&nd }&| j        }| j        }|d }nH                     |          }	 t3          |          }n"# t          $ r}%t5          |          |%d }%~%ww xY w|t6          u r j        <n(t          |t:                    st;          |          <n|<t=           j        <j         <j!                  }'|'"                                }( j#         j$         j%         j&         j'         fd j(        D             >>D ]2})|))                    ||$*                    |          |           d {V  3|'+                                =	 =5   j,        o|tZ          v }*	 t]          |$          \  }$}+|$j/        s|!rt`          nt"          }, |,|$          |"s|	r|+rt          d          |	|"r|+|+}	|	2 j1        r+ j2        r j3        |$4                                k    r j1        }	|	: j5        r3|$j6        , j        7                    d  j8        |$j6                   d {V }	||	tr          j:        |v rt          d           j;        <                    |$          }-|ft{           j;        j>         j;        j?                  }.|.@                    |           |.<                    |$          }/|/r|-A                    |/           d }0|t3          |          }0nV j5        rOt          t                    5  t          jE        t          |$           d {V \  }0}d d d            n# 1 swxY w Y    G                    ||$|||&||-|	|#||| j         jH        |0|= ||nd||> jI                  }1dt          dt          f< =>f
d}2|  jL        n| }3|3rt          |2|3          }4n|2}4	  |4|1           d {V }5n# t          t          t          t          f$ r  t          t          f$ r	 |*rd}*Y  t          $ r  t          $ r6}6|6jV        t          |6t          jW                  r t          |6jX         |6d }6~6ww xY w|5jY        r% j;        Z                    |5jY        |5j[                   |5j\        dv r|
rщ>D ]3})|)]                    ||$*                    |          ||5           d {V  4|!dz  }!|"^                    |5           |rh|!|k    rb|1j_        |1j_        `                                 d {V  |5`                                 t          |"d	         jb        t          |"                    |5j\        dk    r|5jd        tr          je        k    s|5j\        dv rb|5jd        tr          jf        k    rMtr          jg        }d }|h                    tr          ji                  r|j                    tr          ji                   n=|1j_        /|1j_        jk        r#|5`                                 t          d          |1j_        }|5jm        h                    tr          jn                  p#|5jm        h                    tr          jo                  }7|7n|5p                                 	 t3          |7 jq                   }8n]# t          $ rP}%|1j_        |1j_        `                                 d {V  |5`                                 ta          |7d          |%d }%~%ww xY w|8j        }9|9t          vrI|1j_        |1j_        `                                 d {V  |5`                                 t          |7          |9s|$t                    |8          }8	 |84                                }:n]# t          $ rP};|1j_        |1j_        `                                 d {V  |5`                                 ta          |8d          |;d };~;ww xY w|$4                                |:k    rdd }	d }|j                    tr          j:        d            |j                    tr          ju        d            |j                    tr          jv        d            |8}$i }|5p                                 	 d d d            n# 1 swxY w Y   |1j_        |1j_        `                                 d {V  | jw        }|n7t          |          r ||5           d {V  n|r|5y                                 |(;|5jz         |5jz        {                    |(j|                   n|(|                                 t          |"          |5_}        >D ]3})|)~                    ||$*                    |          ||5           d {V  4|5S # t          $ rh}%|'`                                 |(r|(|                                 d }(>D ]3})|)                    ||$*                    |          ||%           d {V  4 d }%~%ww xY w)NzSession is closedr   rj   r   r   z9data and json parameters can not be used at the same time)dumpszChunk size is deprecated #1615r   c                 ,    h | ]}t          |          S r   r   r   s     r   	<setcomp>z)ClientSession._request.<locals>.<setcomp>z  s+       Q  r   r   )r   c           	      Z    g | ]'}t          ||                                         (S ))r   )r]   trace_config_ctx)r   r  r  r   s     r   
<listcomp>z*ClientSession._request.<locals>.<listcomp>  sP     
 
 
  --@Q-RR 
 
 
r   Tz<Cannot combine AUTH argument with credentials encoded in URLzTCannot combine AUTHORIZATION header with AUTH argument or credentials encoded in URL)unsafequote_cookie)ro   rs   rt   rp   rr   ru   r   rx   ry   rz   r   r   r}   r~   timersessionr   r   r   tracesr   reqr   c                 V  
K   j         J 	 j                             | 
           d {V }n/# t          j        $ r}t	          d| j                   |d }~ww xY w|j        J |j                            | j        t          v 	
j
        j         j        
  
         	 |                     |           d {V }	 |                    |           d {V  n## t          $ r |                                  w xY wn## t          $ r |                                  w xY w|S )N)rG  r   zConnection timeout to host )
rE  skip_payloadr|   r   r   r   timeout_ceil_thresholdr   r   r   )r   r   r  TimeoutErrorr+   r1  protocolset_response_paramsr   rN   r   _timeout_ceil_thresholdsendstartBaseExceptionclose)rH  connexcrespr   r   r   r   r   r|   real_timeoutr  rE  rG  s       r   _connect_and_send_requestz9ClientSession._request.<locals>._connect_and_send_request$  s       $:::')-)@)@ #FL *A * * $ $ $ $ $ $DD  '3 ' ' '"8 Gcg G G# ##&''
  $}88899"'),7I)I+9,;)5)?)537?3Z*7+9(3 :   	"),$#7#7#7#7#7#7D&&*jj&6&6 6 6 6 6 6 6 6 6#0 & & & $

 %& !7  - " " " JJLLL!"  $s9   #2 AAA*D C" !D " DD  D&F)-  .  /  i3  i4  r   r[  )rY  rZ  zzCannot follow redirect with a consumed request body. Use bytes, a seekable file-like object, or set allow_redirects=False.)encodedzHServer attempted redirecting to a location that does not look like a URLzInvalid redirect URL origin)r+  r  rA   r  r	  r
  r  r   r   JsonBytesPayloadJsonPayloadr   r  r   r   _prepare_headersr:  r.   r   schemeallowed_protocol_schema_setr0   r   r   r   r   r-   rT   r   rf   rP   r   r   r   rQ  r   r   r   r   r   r   send_request_startupdate_queryrE  r   IDEMPOTENT_METHODSrU   raw_hostr/   r   r   r   r   r   hostrun_in_executor_get_netrc_authr   AUTHORIZATIONr   filter_cookiesrJ   rC  rD  r  loadr	   LookupErrorr  	to_threadrR   r   r   r   r=   r>   r   r<   r+   r"   r    r#   r&   r4   r$   OSErrorerrnorL  args_raw_cookie_headersupdate_cookies_from_headersr1  statussend_request_redirectappend_bodyrS  r8   request_infotupler   	METH_HEAD	METH_POSTMETH_GETgetCONTENT_LENGTHpopconsumedr'   rs   LOCATIONURIreleaser   rE   r1   r9  COOKIEPROXY_AUTHORIZATIONr   callabler{   
connectionadd_callbackcancel_historysend_request_endrR  send_request_exception)?r  r   r7  ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   	redirectshistoryr   r1  eskip_headerstmhandletraceretry_persistent_connectionauth_from_urlerr_exc_clsall_cookiestmp_cookie_jarreq_cookiesproxy_rH  rX  effective_middlewareshandlerrV  rU  r_urlparsed_redirect_urlr`  redirect_originorigin_val_errrW  rE  rG  s?   `               `         ``````                            @@@r   r6  zClientSession._request  sG     V ; 	42333ZkJJMF #    !MF #     0K   )5/D<VWWW*4t7KLLL'4(( 	PW-@M:<NOOO	(*-2 ''00	;//*--CC 	; 	; 	;'
33:	; ***:T_HHH',,, ( !2  '(LL $ 	 2LLL='E1J= MM 11-@@M/E

 / / / ''Q./ h*.-LLg}55 ',7;;;& J*<;V
 
 
 -L""3O  /M!!1N+K
 
 
 
 
 !% 3
 
 
  	V 	VE**633C3CF3K3KWUUUUUUUUUU

G	 ] ] *Kv9K/K ,X)<S)A)A&C< /
  )799!6 $
 *k#... #   (9   ||M4M,  . % !% % 372G3::<<2W2W  $1 ||CH<P%)Z%?%? $"6& &              + , .'99(-   #'"2"A"A#"F"FK*)2#'#3#:)-)9)F* * * '55g>>>&4&C&CC&H&H& :',,[999)-F(!$U %k22  7>7H 5s8 8 2 2 2 2 2 2.FJ              
 --% '*6! +! '!) '"+!Z'+';$#-# $#&?CC(7&3%"&./ .  C4%$*%$'%$ %$ %$ %$ %$ %$ %$ %$ %$ %$ %$ %$ %$ %$ %$R .9-@))k * - <":57L# # #<@%,WS\\111111 /,7/	    )+BC   6 %:?7$H&   " @ @ @9,CAU1V1V,!+SX6C?@ / (DD 4dh  
 {&???O?%+  E"'"="= &(8(8(@(@'4# #         "Q	t,,,( Y--G-G"y4&)ioo&7&7 7 7 7 7 7 7 7 JJLLL"2 '
 7w# #  !K3..4;$.3P3P K:55$+:W:W%)]F#'D&{{4+>?? A 'D,? @ @ @  #y49K4 $

&8%D'" '" !"
 $'9D $ 0 0 ? ? !4<CSCS HD D !=! !LLNNN%25 %43M/M3 3 3//  * % % %"y4&)ioo&7&7 7 7 7 7 7 7 7 JJLLL"? % j# # $%%	% "5!;!)BBB"y4&)ioo&7&7 7 7 7 7 7 7 7 JJLLL"?"F"FF!' P25((;N2O2O/	2.A.H.H.J.JOO) 2 2 2"y4&)ioo&7&7 7 7 7 7 7 7 7 JJLLL"? 3 =# # $22	2 ::<<?::#'D&*G#KK(:DAAA#KKT:::#KK(@$GGG1!# {] ] ] ] ] ] ] ] ] ] ] ] ] ] ]~ y$ioo''''''''''#'#9 '*++ (&&t,,,,,,,,,,! (%%''' !?.O00????MMOOO!'NNDM  ,,C,,V44gt          K 	 	 	HHJJJ   22C,,V44gq          	s  D1 1
E;EEG# #
H-G==H>l  F%h%$S	hS	hS	A?hU/.h/2W.!h$W.81W))W..Hh`%$h%
a?/Aa::a??A3h3dh
e"Aee""Bh<l hl hC4l 
m7A#m22m7.decode_textr  zB_BaseRequestContextManager[ClientWebSocketResponse[Literal[True]]]c                    d S r   r   r  r1  r  r.  s       r   
ws_connectzClientSession.ws_connect  s     TWSVr   zC_BaseRequestContextManager[ClientWebSocketResponse[Literal[False]]]c                    d S r   r   r  s       r   r  zClientSession.ws_connect  s     UXTWr   z9_BaseRequestContextManager[ClientWebSocketResponse[bool]]c                    d S r   r   r  s       r   r  zClientSession.ws_connect  s     KN#r   r   i  @ r   r   r   r   r   r   r   ru   r   ro   rs   r}   r~   r   r   r   r   r   r   rx   r   r  r   r   r   r   r   r   r   c                t    t          |                     |||||||||	|
|||||||||||||                    S )zInitiate websocket connection.r  )_WSRequestContextManager_ws_connect)r  r1  r   r   r   r   r   r   r   ru   r   ro   rs   r}   r~   r   r   r   r   r   r   rx   r   r  s                           r   r  zClientSession.ws_connect   ss    8 (# /#!#%%'' /+!)'/   
 
 	
r   z&ClientWebSocketResponse[Literal[True]]c                
   K   d S r   r   r  s       r   r  zClientSession._ws_connectZ  s       8;sr   z'ClientWebSocketResponse[Literal[False]]c                
   K   d S r   r   r  s       r   r  zClientSession._ws_connectc  s       9<r   zClientWebSocketResponse[bool]c                
   K   d S r   r   r  s       r   r  zClientSession._ws_connectl  s       /2cr   c                n  K   |	t          j        dt          d           |t          j        dt          d           |t          urEt	          |t
                    r|}n4t          j        dt          d           t          |          }nt          }|2t          j        dt          d           t          j        ||	          }|t                      }nt          |          }t          j        d
t          j        dt          j        di}|                                D ]\  }}|                    ||           t!          j        t%          j        d                    }|                                |t          j        <   |r"d                    |          |t          j        <   |
|
|t          j        <   |rt3          |          }||t          j        <   |t          j        dt          d           d}t7          ||||          }|                     ||||d|	|||||           d {V }	 |j        dk    r(t=          |j        |j         d|j        |j!                  |j!        "                    t          j        d          #                                d
k    r(t=          |j        |j         d|j        |j!                  |j!        "                    t          j        d          #                                dk    r(t=          |j        |j         d|j        |j!                  |j!        "                    t          j$        d          } t!          j        tK          j&        |tN          z             (                                                                          }!| |!k    r(t=          |j        |j         d|j        |j!                  d }"|rTt          j        |j!        v rAd |j!        t          j                 )                    d          D             }#|#D ]
}$|$|v r|$}" nd}%|r|j!        "                    t          j                  }&|&rZ	 tU          |&          \  }}%nJ# tV          $ r9}'t=          |j        |j         |'j,        d         |j        |j!                  |'d }'~'ww xY wd}d}%|j-        }(|(J |(j.        })|)J |j/        d |)_0        n&|)j0        tc          |j/        |)j0                  |)_0        |(j2        }*|*J tg          |)th          | j5                  }+tm          |)|*d||%          },| 7                    |+|,|"||||| j5        |||%           }-tq          |+||!          }.|d n|-j9        }/|):                    |.|+|/"           |-S # tv          $ r |<                                  w xY w)#Nr   rj   r   r   zeparameter 'timeout' of type 'float' is deprecated, please use 'timeout=ClientWSTimeout(ws_close=...)'r   )ws_closezofloat parameter 'receive_timeout' is deprecated, please use parameter 'timeout=ClientWSTimeout(ws_receive=...)')
ws_receive	websocketUpgrade13   ,)rx   z+ssl=None is deprecated, please use ssl=TrueTF)	ro   rs   r|   ru   r}   r~   r   r   r   e   zInvalid response status)r)  rs  rs    zInvalid upgrade headerupgradezInvalid connection headerzInvalid challenge responsec                 6    g | ]}|                                 S r   )strip)r   protos     r   rB  z-ClientSession._ws_connect.<locals>.<listcomp>  s0     " " " KKMM" " "r   r   r   )use_maskrx   
notakeover)r   rx   client_notakeoverr  )data_received_cb)=r  r	  r
  rT   r  rD   rB   r  r  r   r   UPGRADE
CONNECTIONSEC_WEBSOCKET_VERSIONitems
setdefaultbase64	b64encodeosurandomdecodeSEC_WEBSOCKET_KEYr9  SEC_WEBSOCKET_PROTOCOLORIGINr[   SEC_WEBSOCKET_EXTENSIONSrA   rg   rs  r:   rw  r  rs   r|  lowerSEC_WEBSOCKET_ACCEPThashlibsha1rV   digestsplitr\   rZ   rp  r  rM  r  r   max	transportr   rM   r   rY   r   rX   _on_data_received
set_parserrR  rS  )0r  r1  r   r   r   r   r   r   r   ru   r   ro   rs   r}   r~   r   r   r   r   r   r   rx   r   r  
ws_timeoutr  default_headerskeyvaluesec_keyextstrrV  r_keymatchrM  resp_protocolsr  r  compress_hdrsrU  rT  
conn_protor  readerwriterws_respparsercbs0                                                   r   r  zClientSession._ws_connectu  s     6 MF #    !MF #    (""'?33 
?$

> '     -g>>>

2J&M< #    ZOLLLJ?-8]]LL&w//L L+OY&
 *//11 	0 	0JC##C////"2:b>>22/6~~/?/?T+, 	L8;8K8KL45(.L% 	A222F:@L67 ;M="   
 CZkJJ \\  !+' " 
 
 
 
 
 
 
 
v	{c!!,%L5; L    |b117799[HH,%L4; L    |44::<<	II,%L7; L    L$$T%>CCE$W\'F2B%C%C%J%J%L%LMMTTVVE~~,%L8; L    H 	T8DLHH" "!%d.I!J!P!PQT!U!U" " "
 ,  E	))#( *
 J ' $ 0 01N O O  '	#/;M/J/J,**+ # # #4 - L$'HQK#';$(L    ###  !H!&J?D###J))) $,*.
''(4*-):+B+ +
' I((('
4FTZXXXF$!%  F --
#!", .  G %V\{SSSF"*0IB!!&&2!FFFN)  	 	 	JJLLL	s2   4H V Q( 'V (
R+24R&&R++BV  V4CIMultiDict[str]c                 B   t          | j                  }|rt          |t          t          f          st          |          }t                      }|                                D ]:\  }}||v r|                    ||            |||<   |                    |           ;|S )z3Add default headers and transform it to CIMultiDict)r   r   r  r   r   setr  add)r  rs   resultadded_namesr  r  s         r   r_  zClientSession._prepare_headersb  s     T233 		)g	'BCC /%g..$'EEK%mmoo ) )
U+%%JJsE****"'F3KOOC((((r   rf  c                 b    t                      }	 t          ||          S # t          $ r Y dS w xY w)z
        Get auth from netrc for the given host.

        This method is designed to be called in an executor to avoid
        blocking I/O in the event loop.
        N)rS   rQ   rl  )r  rf  	netrc_objs      r   rh  zClientSession._get_netrc_authr  sF     #$$		'	4888 	 	 	44	s     
..c                     d S r   r   r  r1  r.  s      r   r|  zClientSession.get  	     (+sr   c                     d S r   r   r  s      r   optionszClientSession.options  r  r   c                     d S r   r   r  s      r   headzClientSession.head  r  r   c                     d S r   r   r  s      r   postzClientSession.post  r  r   c                     d S r   r   r  s      r   putzClientSession.put  r  r   c                     d S r   r   r  s      r   patchzClientSession.patch  r  r   c                     d S r   r   r  s      r   deletezClientSession.delete  r  r   )rv   c                R    t           | j        t          j        |fd|i|          S )zPerform HTTP GET request.rv   )r2  r6  r   r{  r  r1  rv   r.  s       r   r|  zClientSession.get  sC     *M3 8GKQ   r   c                R    t           | j        t          j        |fd|i|          S )zPerform HTTP OPTIONS request.rv   )r2  r6  r   METH_OPTIONSr   s       r   r  zClientSession.options  sD     *%s <KOU   r   c                R    t           | j        t          j        |fd|i|          S )zPerform HTTP HEAD request.rv   )r2  r6  r   ry  r   s       r   r  zClientSession.head  sC     *NC 9HLR   r   )rp   c                R    t           | j        t          j        |fd|i|          S )zPerform HTTP POST request.rp   )r2  r6  r   rz  r  r1  rp   r.  s       r   r  zClientSession.post  s6     *dncGGGGG  r   c                R    t           | j        t          j        |fd|i|          S )zPerform HTTP PUT request.rp   )r2  r6  r   METH_PUTr  s       r   r  zClientSession.put  s6     *dmSFFtFvFF  r   c                R    t           | j        t          j        |fd|i|          S )zPerform HTTP PATCH request.rp   )r2  r6  r   
METH_PATCHr  s       r   r  zClientSession.patch  s6     *dosHHHHH  r   c                 N    t           | j        t          j        |fi |          S )zPerform HTTP DELETE request.)r2  r6  r   METH_DELETEr  s      r   r  zClientSession.delete  s0    )d.>>v>>  r   c                    K   | j         s6| j        &| j        r| j                                         d{V  d| _        dS dS )zMClose underlying connector.

        Release all acquired resources.
        N)r+  r   r   rS  r  s    r   rS  zClientSession.close  s]      
 { 	#*t/D*o++---------"DOOO	# 	#r   c                 ,    | j         du p| j         j        S )z@Is client session closed.

        A readonly property.
        N)r   r+  r  s    r   r+  zClientSession.closed  s     $&@$/*@@r   c                     | j         S )z(Connector instance used for the session.r   r  s    r   r   zClientSession.connector  s     r   c                     | j         S )zThe session cookies.)r   r  s    r   r   zClientSession.cookie_jar   s     r   c                     | j         S )z"The session HTTP protocol version.)r   r  s    r   r   zClientSession.version       }r   c                     | j         S ))Do URL requoting on redirection handling.)r   r  s    r   r   z"ClientSession.requote_redirect_url
  s     ))r   c                 L    t          j        dt          d           || _        dS )r  z=session.requote_redirect_url modification is deprecated #2778r   r   N)r  r	  r
  r   )r  r  s     r   r   z"ClientSession.requote_redirect_url  s6     	K	
 	
 	
 	

 &)"""r   c                 H    t          j        dt          d           | j        S )zSession's loop.z"client.loop property is deprecatedr   r   )r  r	  r
  r   r  s    r   r   zClientSession.loop  s0     	02DQR	
 	
 	
 	
 zr   c                     | j         S )zTimeout for the session.)r   r  s    r   r   zClientSession.timeout!  r  r   c                     | j         S )z*The default headers of the client session.)r   r  s    r   rs   zClientSession.headers&       $$r   c                     | j         S )z2Headers for which autogeneration should be skipped)r   r  s    r   rt   zClientSession.skip_auto_headers+  s     &&r   c                     | j         S )z2An object that represents HTTP Basic Authorization)r   r  s    r   ru   zClientSession.auth0  s     !!r   c                     | j         S )zJson serializer callable)r   r  s    r   r   zClientSession.json_serialize5  s     ##r   c                     | j         S )z-Should connector be closed on session closing)r   r  s    r   r   zClientSession.connector_owner:  r  r   c                     | j         S )zGShould `ClientResponse.raise_for_status()` be called for each response.)r   r  s    r   r{   zClientSession.raise_for_status?  s    
 %%r   c                     | j         S )z7Should the body response be automatically decompressed.)r   r  s    r   r   zClientSession.auto_decompressF  r  r   c                     | j         S )z
        Should proxies information from environment or netrc be trusted.

        Information is from HTTP_PROXY / HTTPS_PROXY environment variables
        or ~/.netrc file if present.
        )r   r  s    r   r   zClientSession.trust_envK  s     r   c                     | j         S )z7A list of TraceConfig instances used for client tracing)r   r  s    r   r   zClientSession.trace_configsU  s     ""r   c                     d| _         dS )zwDetach connector from session without closing the former.

        Session is switched to closed state anyway.
        Nr  r  s    r   detachzClientSession.detachZ  s    
 r   c                      t          d          )NzUse async with instead)	TypeErrorr  s    r   	__enter__zClientSession.__enter__a  s    0111r   exc_typeexc_valexc_tbc                     d S r   r   r  r(  r)  r*  s       r   __exit__zClientSession.__exit__d  s	     	r   c                 
   K   | S r   r   r  s    r   
__aenter__zClientSession.__aenter__m  s      r   c                 >   K   |                                   d {V  d S r   )rS  r,  s       r   	__aexit__zClientSession.__aexit__p  s.       jjllr   r   r   N)r   r  )r   re   )qr   r   r   __doc__r  r!  r   r  StackSummaryr   r   rF   rq   r=  r=   r>   rC   r   HttpVersion11rT   rM   rd   r  AbstractEventLoopra   rb   rO   r   r   r`   r_   r  rW   r   r   r   r   r   rK   r   rf   listr^   r   _CharsetResolverr   r;   r  r  rL   r   r#  r  r0  r  version_infor   rl   rn   rg   r   r:  rc   r   rh   r?   r6  r   r   r   r  r   r{  rD   r  r_  rh  r|  r  r  r  r  r  r  rS  propertyr+  r   r   rx  r   r   setterr   r   rs   r   rt   ru   r   r   r{   r   r   r   r$  r'  rR  r
   r-  r/  r1  __classcell__)r$  s   @r   re   re   
  s        99I!	
 !	
 !	
# #EJ 8<y-4;;;'+J$+++ %)n( +/15'+'+!%'+26!%&*j8<-:/=;R#1/3 $OT*2%)*2 $%)26.!"6J6J689AEn( n( n(T/n( !4'	n(
 '$.n( $n( $n( $n( $n( $C=4/n( $n( $n( /5n( M*n( ^,n(    78!n(" #n($ &,%n(& 'n(( >*:IdO*K!LL)n(* i'+n(, dl-n(. -'/n(0 1n(2 3n(4 #5n(6 K(4/7n(8 9n(: ;n(< =n(> ?n(@ $4An(B 23Cn(D ($.6En(F 
Gn( n( n( n(`
tO4 
 
 
 
 
  	+	+C 	+c 	+d 	+ 	+ 	+ 	+ 	+ 	+ (0 	7 	7 	7D 	7 	7 	7 	7 7""}"	+	+ 	+ _-		+
 &	+ 	+ 	+ 	+ 	+	P	P$,	P8;	P%	P 	P 	P 	PX #     '+'+26!% $&*# #!%'+-5"&$()-/3&*-1$(#''+$(%)"&=AIh h hh h
 h h h $h $h $C=4/h $h h h *t#h h  !h$ 4K(N#3Yt_#DEE%h( )h* $+h, $-h. */h0 4K1h2 T\3h4  $&5h6 $,7h8 t9h: $d*;h< "=h> Dj?h@ AhB TzChD d
EhF 4ZGhH 23d:IhJ 
Kh h h hT 7""}"	
 *-		W 	W 	W	W !		W
 ./	W R	W 	W 	W 
	W 
	X	X !		X
 ./	X S	X 	X 	X 
	X 

 !$		N 	N 	N	N 		N
 ./	N I	N 	N 	N 
	N m#%/7(,"&!%!'+!%'+/3"&$()-&*-1+ 36
 6
 6
6
 	6

 C=6
 !9,6
 6
 6
 6
 4<6
 $6
 d
6
 6
 $6
 $6
  $!6
" $,#6
$ 4K%6
& T\'6
(  $&)6
* t+6
, $d*-6
. /6
0 16
2 36
4 
E56
 6
 6
 6
p 7""}"	
 *-		; 	; 	;	; !		;
 ./	; 6	; 	; 	; 
	; 
	<	< !		<
 ./	< 7	< 	< 	< 
	< 

 !$		2 	2 	2	2 		2
 ./	2 -	2 	2 	2 
	2 m#%/7(,"&!%!'+!%'+/3"&$()-&*-1+ 3k k kk 	k
 C=k !9,k k k k 4<k $k d
k k $k $k  $!k" $,#k$ 4K%k& T\'k(  $&)k* t+k, $d*-k. /k0 1k2 3k4 
)5k k k kZt(; @R     C I,<     7""}"	+	+ _-	+ &		+ 	+ 	+ 	+	+	+ _-	+ &		+ 	+ 	+ 	+	+	+ _-	+ &		+ 	+ 	+ 	+	+	+ _-	+ &		+ 	+ 	+ 	+	+	+ _-	+ &		+ 	+ 	+ 	+	+	+ _-	+ &		+ 	+ 	+ 	+	+	+ _-	+ &		+ 	+ 	+ 	+ 	+ =A	 	 		59	LO	%	 	 	 	 =A	 	 		59	LO	%	 	 	 	 =B	 	 		59	MP	%	 	 	 	 15	 	 		*-	@C	%	 	 	 	 15	 	 		*-	@C	%	 	 	 	 15	 	 		*-	@C	%	 	 	 		h 	# 	:R 	 	 	 	# # # # A A A A XA =4/    X  -       X  sCx    X *d * * * X*  ) ) ) ) ) ! ) g/    X     X % % % X% '9T? ' ' ' X' "i$& " " " X" $ $ $ $ X$ % % % % X% &	.)9T?:;	;& & & X& % % % % X% 4    X #tK0 # # # X#   2 2 2 2}%, % $	
 
      }%, % $	
 
       r   re   c                       e Zd ZdZdeej        e         def         ddfdZ	dddej        e         fdZ
ded	edej        e         fd
ZddZdeedef         fdZdeedef         fdZdefdZdee         dz  dedz  dedz  ddfdZdS )_BaseRequestContextManager)_coro_respcoroNr   c                     || _         d S r   )r?  )r  rA  s     r   r  z#_BaseRequestContextManager.__init__  s    HL


r   argc                 6    | j                             |          S r   )r?  rP  )r  rC  s     r   rP  z_BaseRequestContextManager.send  s    zs###r   rp  r.  c                 &     | j         j        |i |S r   )r?  throw)r  rp  r.  s      r   rF  z _BaseRequestContextManager.throw  s    tz0000r   c                 4    | j                                         S r   )r?  rS  r  s    r   rS  z _BaseRequestContextManager.close  s    z!!!r   c                 8    | j                                         }|S r   )r?  	__await__)r  rets     r   rI  z$_BaseRequestContextManager.__await__  s    j""$$
r   c                 *    |                                  S r   )rI  r  s    r   __iter__z#_BaseRequestContextManager.__iter__  s    ~~r   c                 h   K   | j          d {V | _        | j                                         d {V S r   )r?  r@  r/  r  s    r   r/  z%_BaseRequestContextManager.__aenter__  sG      (,
"2"2"2"2"2"2
Z**,,,,,,,,,r   r(  rU  tbc                 N   K   | j                             |||           d {V  d S r   )r@  r1  r  r(  rU  rN  s       r   r1  z$_BaseRequestContextManager.__aexit__  s:       j""8S"55555555555r   r2  )r   r   r   	__slots__r   r  Futurer   r   r  rP  rF  rS  r   rI  rL  r/  r  rR  r
   r1  r   r   r   r>  r>  y  s{        #IMYw~c':D+'MN MSW M M M M$ $!4 $ $ $ $13 1# 1'.2E 1 1 1 1" " " "9S$%;<     )C{$:;        -+ - - - -6}%,6 T!6 D 	6
 
6 6 6 6 6 6r   r>  c                       e Zd ZdZdeej        e         def         de	ddfdZ
defdZdee         dz  d	edz  d
edz  ddfdZdS )_SessionRequestContextManagerr?  r@  _sessionrA  NrF  r   c                 0    || _         d | _        || _        d S r   rU  )r  rA  rF  s      r   r  z&_SessionRequestContextManager.__init__  s    
 
,0
r   c                    K   	 | j          d {V | _        | j        S # t          $ r! | j                                         d {V   w xY wr   )r?  r@  rR  rV  rS  r  s    r   r/  z(_SessionRequestContextManager.__aenter__  sv      	#z))))))DJ
 :	  	 	 	-%%'''''''''	s	    +Ar(  rU  rN  c                    K   | j         J | j                                          | j                                         d {V  d S r   )r@  rS  rV  rP  s       r   r1  z'_SessionRequestContextManager.__aexit__  sV       z%%%
m!!###########r   )r   r   r   rQ  r   r  rR  r   r>   re   r  r/  r  rR  r
   r1  r   r   r   rT  rT    s        .I s+T>AB    
	       .    $}%,$ T!$ D 	$
 
$ $ $ $ $ $r   rT  )r   r   r   r   r1  r   r   r   r.  r   c                    d S r   r   )r   r1  r   r   r   r.  s         r   rg   rg     s	     ),r   c          	          d}|d}t          |d          }t          ||                    dd          ||                    dt                    ||          }t	           |j        | |fi ||          S )aB  Constructs and sends a request.

        Returns response object.
        method - HTTP method
        url - request url
        params - (optional) Dictionary or bytes to be sent in the query
        string of the new request
        data - (optional) Dictionary, bytes, or file-like object to
        send in the body of the request
        json - (optional) Any json compatible python object
        headers - (optional) Dictionary of HTTP Headers to send with
        the request
        cookies - (optional) Dict object to send with the request
        auth - (optional) BasicAuth named tuple represent HTTP Basic Auth
        auth - aiohttp.helpers.BasicAuth
        allow_redirects - (optional) If set to False, do not follow
        redirects
        version - Request HTTP version.
        compress - Set to True if request has to be compressed
        with deflate encoding.
        chunked - Set to chunk size for chunked transfer encoding.
        expect100 - Expect 100-continue response from server.
        connector - BaseConnector sub-class instance to support
        connection pooling.
        read_until_eof - Read response until eof if response
        does not have Content-Length header.
        loop - Optional event loop.
        timeout - Optional ClientTimeout settings structure, 5min
        total timeout by default.
        Usage::
        >>> import aiohttp
        >>> async with aiohttp.request('GET', 'http://python.org/') as resp:
        ...    print(resp)
        ...    data = await resp.read()
        <ClientResponse(https://www.python.org/) [200 OK]>
        FNT)r   force_closerr   r   )r   rr   r   r   r   r   )rH   re   r~  rT   rT  r6  )r   r1  r   r   r   r.  r   rF  s           r   rg   rg     s    Z  "O$$DAAAIJJy$//JJy(33+
 
 
 -GVS33F33
 
 	
r   )r3  r  r  r  rq   r  r  r  r  collections.abcr   r   r   r   r   r   
contextlibr	   typesr
   typingr   r   r   r   r   r   r   r   r  	multidictr   r   r   r   yarlr   r  r   r   r   _websocket.readerr   abcr   client_exceptionsr   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   client_middlewaresr;   r<   client_reqrepr=   r>   r?   r@   rA   	client_wsrB   rC   rD   r   rE   rF   rG   rH   rI   	cookiejarrJ   helpersrK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   http_websocketrZ   r[   r\   tracingr]   r^   typedefsr_   r`   ra   rb   rc   rd   __all__r   rh   r9  rl   rn   r   srf   r   r   r  rd  r   r   r   r8  re   r>  r2  r   r  rT  r5  r6  rg   r   r   r   <module>rp     sT          				 



                                 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	  B B B B B B B B B B B B       ! ! ! ! ! ! ! ! ! ! 1 1 1 1 1 1 " " " " " "                                                             > O N N N N N N N                      
              !                                    H G G G G G G G G G G G F F F F F F F F F F ' ' ' ' ' ' ' '               0f  Jw=7 7 7 7 7iu 7 7 7 7<    	    0 T$d333       43, )6FQS(T(T(T}% T T T YSSSTT g
:  
 ^U3S89 l l l l l l l l^+#6 #6 #6 #6 #6c3#$gk&:#6 #6 #6L 4NC 56Md6ST $ $ $ $ $ $ $ $B w=  $1*.15, , ,,, 	,
 !4', '$., ), 
', , , , , ,   $1*.15>
 >
 >
>
>
 	>

 !4'>
 '$.>
 >
 
'>
 >
 >
 >
 >
 >
r   