ok

Mini Shell

Direktori : /opt/imunify360/venv/lib/python3.11/site-packages/aiohttp/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/aiohttp/__pycache__/client.cpython-311.pyc

�

m��f��1� �UdZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZm
Z
ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZddlZddl m!Z!m"Z"m#Z#m$Z$ddl%m&Z&dd	l'm(Z(m)Z)m*Z*dd
l+m,Z,ddl-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@ddlAmBZBmCZCmDZDmEZEmFZFdd
lGmHZHddlImJZJmKZKmLZLmMZMddlNmOZOddlPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXmYZYddl)mZZZm[Z[m\Z\m]Z]ddl^m_Z_m`Z`maZambZbddlcmdZdddlemfZfmgZgddlhmiZimjZjmkZkmlZlmmZmdZn	ddlompZpn
#eq$rerZpYnwxYwejsddd���Gd�d����Ztetd���Zueietevd<ed��ZwGd �d!��ZxGd"�d#eeeewfeew��ZyGd$�d%eyeC��ZzGd&�d'eyeH��Z{Gd(�d)��Z|dddddddd*ddd+ddddeXde)j}dddd,�d-e~d.emd/eee~e~fd0ed1ed2eeld3eee~d4eeSd5ed6e�d7ee~d8eed9ed:eed;ed<eemd=eeSd>eeterfd?eekd@e[dAeeJdBee�dCeej�dDe|f0dE�Z�dS)FzHTTP Client for asyncio.�N)�suppress)�SimpleNamespace�
TracebackType)�Any�	Awaitable�Callable�	Coroutine�	FrozenSet�	Generator�Generic�Iterable�List�Mapping�Optional�Set�Tuple�Type�TypeVar�Union)�CIMultiDict�	MultiDict�MultiDictProxy�istr)�URL�)�hdrs�http�payload)�AbstractCookieJar)�ClientConnectionError�ClientConnectorCertificateError�ClientConnectorError�ClientConnectorSSLError�ClientError�ClientHttpProxyError�
ClientOSError�ClientPayloadError�ClientProxyConnectionError�ClientResponseError�ClientSSLError�ContentTypeError�
InvalidURL�ServerConnectionError�ServerDisconnectedError�ServerFingerprintMismatch�ServerTimeoutError�TooManyRedirects�WSServerHandshakeError)�
ClientRequest�ClientResponse�Fingerprint�RequestInfo�_merge_ssl_params)�ClientWebSocketResponse)�
BaseConnector�NamedPipeConnector�TCPConnector�
UnixConnector)�	CookieJar)	�DEBUG�PY_36�	BasicAuth�
TimeoutHandle�ceil_timeout�get_env_proxy_for_url�get_running_loop�sentinel�strip_auth_from_url)�WS_KEY�HttpVersion�WebSocketReader�WebSocketWriter)�WSHandshakeError�	WSMessage�
ws_ext_gen�ws_ext_parse)�FlowControlDataQueue)�Trace�TraceConfig)�Final�JSONEncoder�LooseCookies�LooseHeaders�StrOrURL)r r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r9r;r<r:r8�
ClientSession�
ClientTimeout�request)�
SSLContextT)�auto_attribs�frozen�slotsc�x�eZdZUdZeeed<dZeeed<dZeeed<dZ	eeed<dS)rXN�total�connect�	sock_read�sock_connect)
�__name__�
__module__�__qualname__r_r�float�__annotations__r`rarb���E/opt/imunify360/venv/lib64/python3.11/site-packages/aiohttp/client.pyrXrX�sb�������!�E�8�E�?�!�!�!�#�G�X�e�_�#�#�#�!%�I�x���%�%�%�$(�L�(�5�/�(�(�(�(�(rirXi,�r_�DEFAULT_TIMEOUT�_RetTypec7�
��eZdZdZegd���ZdZdZ	dwddddddej	e
eee
jdddededddddd�deed	eed
eejdeedeed
eeedeededee
deedeededeedededee e!fdee dee!e"fdedededee#e$de%ddf0d �Z&d!edddfd"�Z'e(rd#ed$e)ddf�fd%�Z*e+fd&e)ddfd'�Z,d(ed)ed*e)dd+fd,�Z-d-ede.fd.�Z/ddddddddd/dddddddedddddddd0�d(ed-ed1ee0eefd2e)d3e)deedeed
eeedeed4ed5e%d6eed7eed8edeed9ed:eed;eedee"e!fd<eed=ee1d>ee2d?eee2ee3fd@eedAee4dee%def6dB�Z5e6j7dCdDddddddddddddddddEdFdG�d)ed(edHeede dIee dJedKedLee deedMeed1ee0eefdeed:eed;eed?ee2ede3fd<eed=ee1d>ee2d@eed6e%dNe%ddOf,dP�Z8e6j7dCdDddddddddddddddddEdFdG�d)ed(edHeede dIee dJedKedLee deedMeed1ee0eefdeed:eed;eed?ee2ede3fd<eed=ee1d>ee2d@eed6e%dNe%def,dQ�Z9deeddRfdS�Z:ddT�d)ed4ed*e)dd+fdU�Z;ddT�d)ed4ed*e)dd+fdV�Z<ddT�d)ed4ed*e)dd+fdW�Z=ddX�d)ed2e)d*e)dd+fdY�Z>ddX�d)ed2e)d*e)dd+fdZ�Z?ddX�d)ed2e)d*e)dd+fd[�Z@d)ed*e)dd+fd\�ZAdxd]�ZBeCdefd^���ZDeCdeefd_���ZEeCdefd`���ZFeCdeGe%e%ffda���ZHeCdefdb���ZIeIjJd$eddfdc���ZIeCdejfdd���ZKeCde"fde���ZLeCdydf���ZMeCdeNeOfdg���ZPeCdeefdh���ZQeCdefdi���ZReCdefdj���ZSeCdeeeTegeUdfffdk���ZVeCdefdl���ZWeCdefdm���ZXeCde#e$fdn���ZYdxdo�ZZdxdp�Z[dqeee\dree\dsee]ddfdt�Z^dzdu�Z_dqeee\dree\dsee]ddfdv�Z`�xZaS){rWz/First-class interface for making HTTP requests.)�	_base_url�_source_traceback�
_connector�requote_redirect_url�_loop�_cookie_jar�_connector_owner�
_default_auth�_version�_json_serialize�_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_bufsizeNTF�)�	connector�loop�cookies�headers�skip_auto_headers�auth�json_serialize�
request_class�response_class�ws_response_class�version�
cookie_jar�connector_owner�raise_for_status�read_timeout�conn_timeout�timeout�auto_decompress�	trust_envrr�
trace_configs�read_bufsize�base_urlr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr�r��returnc��|�	|�|j}t|��}|�t|t��r||_n@t|��|_|j���|jks
Jd���|�t
|���}|j|urtd���||_|���r+tj
tjd����|_
|
�t|���}
|
|_|�|j�|��||_||_||_||_||_|t,ur�t.|_|t,ur<t3jdt6d���t9j|j|���|_|�<t9j|j|�	��|_t3jd
t6d���n0||_|t,urt=d���|�t=d���||_||_ ||_!||_"||_#|rtI|��}ntI��}||_%|�tMd
�|D����|_'ntM��|_'|	|_(|
|_)||_*|pg|_+|j+D]}|�,���dS)Nz2Only absolute URLs without path part are supported�r�z0Session and connector has to use same event looprz8read_timeout is deprecated, use timeout argument instead���
stacklevelrk)r`z8conn_timeout is deprecated, use timeout argument insteadzGread_timeout and timeout parameters conflict, please setup timeout.readzJconn_timeout and timeout parameters conflict, please setup timeout.connectc3�4K�|]}t|��V��dS�N)r)�.0�is  rj�	<genexpr>z)ClientSession.__init__.<locals>.<genexpr>0s(����/S�/S�A��Q���/S�/S�/S�/S�/S�/Sri)-rsrD�
isinstancerro�originr;�RuntimeError�	get_debug�	traceback�
extract_stack�sys�	_getframerpr=rt�update_cookiesrqrurvrwrxrErlrz�warnings�warn�DeprecationWarning�attr�evolve�
ValueErrorr{r|r}ryr�rr~�	frozensetrr�r�r�r��freeze)�selfr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr�r��real_headers�trace_configs                          rj�__init__zClientSession.__init__�s��6�<��$� �����%�%����z�(�C�8�8��,4�D�N�N� ��]�]�D�N���%�%�'�'�4�>�9�9�9�C�:�9�9���$�$�/�/�/�I��?�$�&�&��Q�R�R�R���
��>�>���	O�%.�%<�S�]�1�=M�=M�%N�%N�D�"���"��-�-�-�J�%�������+�+�G�4�4�4�#��� /���!�����
�-����h���+�D�M��8�+�+��
�Q�&� �����
!%��D�M�� N� N� N��
��'� $��D�M�<� P� P� P��
��
�Q�&� ������$�D�M��8�+�+� �#����
�'� �&����
"2��� /���#���%9��"�)����	)�-8��-A�-A�L�L�&�=�=�L�2>����(�&/�/S�/S�AR�/S�/S�/S�&S�&S�D�#�#�&/�k�k�D�#�+���-���"3���+�1�r��� �/�	"�	"�L����!�!�!�!�	"�	"ri�clsc�n�tjd�|j��td���dS)Nz6Inheritance class {} from ClientSession is discouragedr�r�)r�r��formatrcr�)r�s rj�__init_subclass__zClientSession.__init_subclass__<s?���
�
�#�V�C�L�1�1���		
�	
�	
�	
�	
�	
ri�name�valc���||jvr/tjd�|��td���t���||��dS)Nz8Setting custom ClientSession.{} attribute is discouragedr�r�)�ATTRSr�r�r�r��super�__setattr__)r�r�r��	__class__s   �rjr�zClientSession.__setattr__Fsa����4�:�%�%��
�%�%+�V�D�\�\�&� �	����
�G�G����c�*�*�*�*�*ri�	_warningsc���|jsWtrd|i}ni}|jd|��tfi|��|dd�}|j�
|j|d<|j�|��dSdS)N�sourcezUnclosed client session zUnclosed client session)�client_session�message�source_traceback)�closedr?r��ResourceWarningrprs�call_exception_handler)r�r��kwargs�contexts    rj�__del__zClientSession.__del__Ps����{�	7��
�"�D�)������I�N�3�4�3�3�_�
�
�HN�
�
�
�*.�:S�T�T�G��%�1�.2�.D��*�+��J�-�-�g�6�6�6�6�6�	7�	7ri�method�urlr��_RequestContextManagerc�:�t|j||fi|����S)zPerform HTTP request.)r��_request)r�r�r�r�s    rjrYzClientSession.request^s(��&�m�d�m�F�C�&J�&J�6�&J�&J�K�K�Kri�
str_or_urlc���t|��}|j�|S|���s|j�d��sJ�|j�|��S)N�/)rro�is_absolute�path�
startswith�join)r�r�r�s   rj�
_build_urlzClientSession._build_urlds[���*�o�o���>�!��J����(�(�E�S�X�-@�-@��-E�-E�E�E�E��>�&�&�s�+�+�+ri�
)�params�data�jsonr�r�r�r��allow_redirects�
max_redirects�compress�chunked�	expect100r��read_until_eof�proxy�
proxy_authr��
verify_ssl�fingerprint�ssl_context�ssl�
proxy_headers�trace_request_ctxr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�c��4��K��jrtd���t||||��}|�|�td���|�t	j|�j���}t|
t��s|
�tj
dt��d}g}�j}��
|��}��
|��}	��|��}n"#t$r}t|��|�d}~wwxYwt!�j��} |�'|D]$}!| �t'|!�����%|�3	t)|��}n"#t$r}t|��|�d}~wwxYw|t*ur�j}"n(t|t.��st/|���}"n|}"t1�j|"j��}#|#���}$|��j}��fd��jD��}%|%D]2}&|&�||�|��|���d{V���3|#� ��}'	|'5	tC|��\}}(|	r|(rtd	���|	�|(}	|	��j"}	|�|	�tFj$|vrtd
����j%�&|��})|�OtO��}*|*�(|��|*�&|��}+|+r|)�)|+��|�t)|��}nE�j*r>tWtX��5t[|��\}}ddd��n#1swxYwY��.||||| ||)|	|||
|�j�j/|||'�|||%���},	ta|"j1��4�d{V���j2�J��j2�1|,|%|"����d{V��}-ddd���d{V��n#1�d{V��swxYwYn:#tfj4$r(}.tkd
�6|����|.�d}.~.wwxYw|-j7�J�|-j8�J�|-j8�9|'|�:��dk|�j;|"j<|���		|,�=|-���d{V��}/	|/�|-���d{V��n##t|$r|/�?���wxYwn##t|$r|-�?���wxYwnM#t�$r�t�$r6}.|.jB�t|.tfj4��r�t�|.jD�|.�d}.~.wwxYw�j%�(|/jE|/jF��|/jGdv�rf|
�rc|%D]3}&|&�H||�|��||/���d{V���4|dz
}|�I|/��|rB||kr<|/�?��t�|djKt�|�����|/jGdkr|/jMtFjNks|/jGdvra|/jMtFjOkrLtFjP}d}|�QtFjR��r|�StFjR��|/jT�QtFjU��p#|/jT�QtFjV��}0|0�n�|/�W��	t)|0�jX���}1n"#t$r}t|0��|�d}~wwxYw|1jY}2|2dvr#|/�?��td���|2s|�Z|1��}1|�[��|1�[��kr"d}	|�StFj$d��|1}d}|/�W�����	ddd��n#1swxYwY|��j\}|r|/�]��|$�;|/j^� |/j^�_|$j`��n|$�`��t�|��|/_a|%D]3}&|&�b||�|��||/���d{V���4|/S#t|$rh}|#�?��|$r|$�`��d}$|%D]3}&|&�c||�|��||���d{V���4�d}~wwxYw)NzSession is closedz9data and json parameters can not be used at the same time)�dumpszChunk size is deprecated #1615rrkc	�Z��g|]'}t�||���������(S))r�)rP�trace_config_ctx)r�r�r�r�s  ��rj�
<listcomp>z*ClientSession._request.<locals>.<listcomp>�sP���
�
�
��
����-�-�@Q�-�R�R�
�
�
�
�
riTz<Cannot combine AUTH argument with credentials encoded in URLzTCannot combine AUTHORIZATION header with AUTH argument or credentials encoded in URL)r�r�r�r�r�r�r�r�r�r�r�r�r�r��timer�sessionr�r��traces)r�r�zConnection timeout to host {}�HEAD)r��skip_payloadr�r�r�r�)�-�.�/i3i4rr�)r�r�)�encoded)r�https�z"Can redirect only to http or https)dr�r�r7r�r�JsonPayloadrxr��boolr�r�r�rw�_prepare_headersr�r,�setr�addrrrErzrXrArsr_�startr�r��send_request_start�update_queryr�rFrvr�
AUTHORIZATIONrt�filter_cookiesr=r��loadr}r�LookupErrorrCr�r�rBr`rq�asyncio�TimeoutErrorr0r��	transport�protocol�set_response_params�upperr|ra�send�
BaseException�closer$�OSError�errnor&�argsr�r��status�send_request_redirect�appendr1�request_info�tupler��	METH_HEAD�	METH_POST�METH_GET�get�CONTENT_LENGTH�popr��LOCATION�URI�releasery�schemer�r�r{r��
connection�add_callback�cancel�_history�send_request_end�send_request_exception)3r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��	redirects�historyr�r��e�skip_headersr��real_timeout�tm�handler��tracer��
auth_from_url�all_cookies�tmp_cookie_jar�req_cookies�req�conn�exc�resp�r_url�
parsed_urlr(s3`                        `                         rjr�zClientSession._requestls-������F�;�	4��2�3�3�3���Z��k�J�J����� 0��K���
��
��&�t�4�3G�H�H�H�D��'�4�(�(�	P�W�-@��M�:�<N�O�O�O��	����-���'�'��0�0���-�-�m�<�<�
�	0��/�/�*�-�-�C�C���	0�	0�	0��Z�(�(�a�/�����	0�����4�2�3�3���(�&�
*�
*��� � ��a���)�)�)�)���
/��E�
�
�����
/�
/�
/� ��'�'�Q�.�����
/�����h���*.�-�L�L��g�}�5�5�
'�,�7�;�;�;���&���4�:�|�'9�
:�
:�����������-�L�
�
�
�
�
�!%� 3�

�
�
���	V�	V�E��*�*�6�3�3C�3C�F�3K�3K�W�U�U�U�U�U�U�U�U�U�U����
�
��M	��j
�j
�i�)<�S�)A�)A�&�C����
��(�9����
�|�,���|�#�1�� �+� �,� �.�'�9�9�(�-����#'�"2�"A�"A�#�"F�"F�K��*�)2����&�5�5�g�>�>�>�&4�&C�&C�C�&H�&H��&�:�'�,�,�[�9�9�9��(� #�E�
�
�����K�%�k�2�2�K�K�0E�c�0J�0J�-�E�:�K�K�K�K�K�K�K�K�K�K�K����K�K�K�K��-�-���%� '�*6�!� +�!� '�!)� '�"+�!�Z�'+�';�#�#-�#� $��&3�%�+.���C�2	#�#/��0D�#E�#E���������#'�?�#>�#>�#>�)-��)@�)@� #�F�L�*A�*�*�$�$�$�$�$�$�D���������������������������������
#�/�#�#�#�0�>�E�E�c�J�J���"�#�����#����
 �>�5�5�5��=�4�4�4��M�5�5�#�%+�\�\�^�^�v�%=�'5�(,�(=�%1�%;�%1�
6����@�	"�),���$���#7�#7�#7�#7�#7�#7�D�&�&*�j�j��&6�&6� 6� 6� 6� 6� 6� 6� 6� 6��#0�&�&�&� $�
�
���� %�&����!7�� -�"�"�"� �J�J�L�L�L�!�"����	!7��'�����"�@�@�@��9�,��C��AU�1V�1V�,�!�+�S�X�6�C�?�����@����
�$�3�3�D�L�$�(�K�K�K��{�&?�?�?�O�?�%+���E�"'�"=�"=� &��(8�(8��(@�(@�'�4�#�#���������"�Q��	����t�,�,�,�(��Y�-�-G�-G� �J�J�L�L�L�"2� '��
� 7��w���#�#��!�K�3�.�.�4�;�$�.�3P�3P� �K�:�5�5�$�+���:W�:W�%)�]�F�#'�D�&�{�{�4�+>�?�?�A� '���D�,?� @� @� @� $�� 0� 0��� ?� ?�!�4�<�CS�CS� �H�D�D��!�=�!�!�L�L�N�N�N�;�),� %�4�3M�/M�*�*�*�J�J�� *�;�;�;�",�U�"3�"3��:�����;����",�!2��!�)>�>�>� �J�J�L�L�L�",�-Q�"R�"R�R�!'�>�),���*�)=�)=�J��:�:�<�<�:�+<�+<�+>�+>�>�>�#'�D�#�K�K��(:�D�A�A�A�(��!%�������� ��Uj
�j
�j
�j
�j
�j
�j
�j
�j
�j
�j
����j
�j
�j
�j
�Z �'�#'�#9� ��
(��%�%�'�'�'��!��?�.��O�0�0���?�?�?�?��M�M�O�O�O�!�'�N�N�D�M��
�
���,�,��C�,�,�V�4�4�g�t������������K���	�	�	��H�H�J�J�J��
��
�
�������
�
���2�2��C�,�,�V�4�4�g�q�����������
�����	���sP�C�
C9�$C4�4C9�<E�
E+�E&�&E+�<b%�>C-_2�+M
�>_2�
M	�_2�M	�7_2�
O5�$-O#�O5�#
O-	�-O5�0O-	�1O5�4_2�5P,�#P'�'P,�,A_2�S�R;�:S�; S�S�T� S?�?T�_2�U
�1U�U
�
F2_2�\�_2�
\7�"\2�2\7�7B/_2�&b%�2_6�6b%�9_6�:B*b%�%
d�/A#d�drhg$@ri@�r��	protocolsr��receive_timeout�	autoclose�autoping�	heartbeatr�r�r�r�r�r�r�r�r�r�r�r��max_msg_sizerBrCrDrErFr�rG�_WSRequestContextManagerc�p�t|�|||||||||	|
|||
||||||||�����S)zInitiate websocket connection.rA)rH�_ws_connect)r�r�r�rBr�rCrDrErFr�r�r�r�r�r�r�r�r�r�r�r�rGs                      rj�
ws_connectzClientSession.ws_connect�sm��4(������#�� /�#�!�#������%��%�'�'�+�!�)�+
�
�
�
�
�	
ric��
	K�|�t��}nt|��}tjdtjdtjdi}|���D]\}}|�||���tjtj
d����}|���|tj<|r"d�
|��|tj<|
�|
|tj<|rt!|���}||tj<t%||||��}|�||||d|	|
|||��
�
�d{V��}	|jd	kr(t+|j|jd
|j|j����|j�tjd�����dkr(t+|j|jd
|j|j����|j�tjd�����dkr(t+|j|jd|j|j����|j�tjd��}tjt9j|t<z����������}||kr(t+|j|jd|j|j����d}|rTtj|jvrAd�|jtj� d��D��} | D]
}!|!|vr|!}n�d}"|r�|j�tj��}#|#rZ	tC|#��\}}"nJ#tD$r9}$t+|j|j|$j#d|j|j���|$�d}$~$wwxYwd}d}"|j$}%|%�J�|%j%}&|&�J�|%j&}'|'�J�tO|&d|j(���}(|&�)tU|(|��|(��tW|&|'d||"���})|�,|(|)||||||j(||||"���S#tZ$r|�.���wxYw)N�	websocket�upgrade�13��,)r�F)r�r�r�r�r�r�r�r��ezInvalid response status)r�rr�rzInvalid upgrade headerzInvalid connection headerzInvalid challenge responsec�6�g|]}|�����Srh)�strip)r��protos  rjr�z-ClientSession._ws_connect.<locals>.<listcomp>Ds0��"�"�"���K�K�M�M�"�"�"rirr�r�T)�use_maskr��
notakeover)rCrFr��client_notakeover)/rr�UPGRADE�
CONNECTION�SEC_WEBSOCKET_VERSION�items�
setdefault�base64�	b64encode�os�urandom�decode�SEC_WEBSOCKET_KEYr��SEC_WEBSOCKET_PROTOCOL�ORIGINrM�SEC_WEBSOCKET_EXTENSIONSr7rYrr2rr0r�r"�lower�SEC_WEBSOCKET_ACCEPT�hashlib�sha1rG�digest�splitrNrKrr)rrrOrs�
set_parserrIrJr�rr)*r�r�r�rBr�rCrDrErFr�r�r�r�r�r�r�r�r�r�r�r�rGr��default_headers�key�value�sec_key�extstrr>�r_key�matchr�resp_protocolsrUrW�
compress_hdrsr=r<�
conn_protor�reader�writers*                                          rjrJzClientSession._ws_connect�s/����4�?�-8�]�]�L�L�&�w�/�/�L�
�L�+��O�Y��&��
��*�/�/�1�1�	0�	0�J�C���#�#�C��/�/�/�/��"�2�:�b�>�>�2�2��/6�~�~�/?�/?��T�+�,��	L�8;����8K�8K�L��4�5���(.�L���%��	A���2�2�2�F�:@�L��6�7���Z��k�J�J���\�\���� � ���!��'�"�
�
�
�
�
�
�
�
��k	��{�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�C�E��$�W�\�'�F�2B�%C�%C�%J�%J�%L�%L�M�M�T�T�V�V�E���~�~�,��%��L�8��;� �L������H��	
�T�8�D�L�H�H�"�"�!%��d�.I�!J�!P�!P�QT�!U�!U�"�"�"��
,���E��	�)�)�#(����*�
�J��
'� $�� 0� 0��1N� O� O�
� �
'�	#�/;�M�/J�/J�,��*�*��+�#�#�#�4� �-� �L�$'�H�Q�K�#'�;�$(�L���� #�
#�����#���� !�H�!&�J��?�D��#�#�#���J��)�)�)���I��(�(�(�6J��E��
�7�7�7�F�
�!�!�/�&�,�"G�"G��P�P�P�$����!�%����F��*�*���������
� /�#�!�",�+�
�
�

��	�	�	�	��J�J�L�L�L��	���s2�H Q"�/N�Q"�
O�4O�O�A7Q"�" R�CIMultiDict[str]c�B�t|j��}|r�t|ttf��st|��}t��}|���D]:\}}||vr|�||��� |||<|�|���;|S)z3Add default headers and transform it to CIMultiDict)rr~r�rrrr\r)r�r��result�added_namesrorps      rjrzClientSession._prepare_headers�s����T�2�3�3���		)��g��	�'B�C�C�
/�%�g�.�.��$'�E�E�K�%�m�m�o�o�
)�
)�
��U��+�%�%��J�J�s�E�*�*�*�*�"'�F�3�K��O�O�C�(�(�(�(��
ri)r�c�R�t|jtj|fd|i|����S)zPerform HTTP GET request.r�)r�r�rr!�r�r�r�r�s    rjr"zClientSession.get�s7��&��D�M�$�-��X�X�o�X�QW�X�X�
�
�	
ric�R�t|jtj|fd|i|����S)zPerform HTTP OPTIONS request.r�)r�r�r�METH_OPTIONSrs    rj�optionszClientSession.options�sD��&��D�M��!�3�
�
�8G�
�KQ�
�
�
�
�	
ric�R�t|jtj|fd|i|����S)zPerform HTTP HEAD request.r�)r�r�rrrs    rj�headzClientSession.head�sC��&��D�M����
�
�5D�
�HN�
�
�
�
�	
ri)r�c�R�t|jtj|fd|i|����S)zPerform HTTP POST request.r�)r�r�rr �r�r�r�r�s    rj�postzClientSession.post�s6��&��D�M�$�.�#�C�C�D�C�F�C�C�
�
�	
ric�R�t|jtj|fd|i|����S)zPerform HTTP PUT request.r�)r�r�r�METH_PUTr�s    rj�putzClientSession.put�s6��&��D�M�$�-��B�B�4�B�6�B�B�
�
�	
ric�R�t|jtj|fd|i|����S)zPerform HTTP PATCH request.r�)r�r�r�
METH_PATCHr�s    rj�patchzClientSession.patch�s6��&��D�M�$�/�3�D�D�T�D�V�D�D�
�
�	
ric�N�t|jtj|fi|����S)zPerform HTTP DELETE request.)r�r�r�METH_DELETE)r�r�r�s   rj�deletezClientSession.delete�s)��%�m�d�m�D�4D�c�&T�&T�V�&T�&T�U�U�Uric��K�|js6|j�&|jr|j����d{V��d|_dSdS)zMClose underlying connector.

        Release all acquired resources.
        N)r�rqrur�r�s rjrzClientSession.close�s]����
�{�	#���*�t�/D�*��o�+�+�-�-�-�-�-�-�-�-�-�"�D�O�O�O�	#�	#ric�,�|jdup|jjS)z@Is client session closed.

        A readonly property.
        N)rqr�r�s rjr�zClientSession.closed�s����$�&�@�$�/�*@�@ric��|jS)z(Connector instance used for the session.�rqr�s rjr�zClientSession.connector�s����ric��|jS)zThe session cookies.)rtr�s rjr�zClientSession.cookie_jar�s
����ric��|jS)z"The session HTTP protocol version.)rwr�s rjr�zClientSession.version�����}�ric��|jS)�)Do URL requoting on redirection handling.)ryr�s rjrrz"ClientSession.requote_redirect_url�s
���)�)ric�L�tjdtd���||_dS)r�z=session.requote_redirect_url modification is deprecated #2778r�r�N)r�r�r�ry)r�r�s  rjrrz"ClientSession.requote_redirect_url�s6��	�
�N���	
�	
�	
�	
�
&)��"�"�"ric�H�tjdtd���|jS)zSession's loop.z"client.loop property is deprecatedr�r�)r�r�r�rsr�s rjr�zClientSession.loop�s0��	�
�0�2D�QR�	
�	
�	
�	
��z�ric��|jS)zTimeout for the session.)rzr�s rjr�zClientSession.timeoutr�ric��|jS)z*The default headers of the client session.)r~r�s rjr�zClientSession.headers
�
���$�$ric��|jS)z2Headers for which autogeneration should be skipped)rr�s rjr�zClientSession.skip_auto_headerss
���&�&ric��|jS)z2An object that represents HTTP Basic Authorization)rvr�s rjr�zClientSession.auths
���!�!ric��|jS)zJson serializer callable)rxr�s rjr�zClientSession.json_serializes
���#�#ric��|jS)z-Should connector be closed on session closing)rur�s rjr�zClientSession.connector_ownerr�ric��|jS)zGShould `ClientResponse.raise_for_status()` be called for each response.)r{r�s rjr�zClientSession.raise_for_status#s
��
�%�%ric��|jS)z7Should the body response be automatically decompressed.)r|r�s rjr�zClientSession.auto_decompress*r�ric��|jS)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 rjr�zClientSession.trust_env/s����ric��|jS)z7A list of TraceConfig instances used for client tracing)r�r�s rjr�zClientSession.trace_configs9s
���"�"ric��d|_dS)zwDetach connector from session without closing the former.

        Session is switched to closed state anyway.
        Nr�r�s rj�detachzClientSession.detach>s��
����ric� �td���)NzUse async with instead)�	TypeErrorr�s rj�	__enter__zClientSession.__enter__Es���0�1�1�1ri�exc_type�exc_val�exc_tbc��dSr�rh�r�r�r�r�s    rj�__exit__zClientSession.__exit__Hs	��	
�ric��
K�|Sr�rhr�s rj�
__aenter__zClientSession.__aenter__Qs�����ric��>K�|����d{V��dSr�)rr�s    rj�	__aexit__zClientSession.__aexit__Ts.�����j�j�l�l���������rir��r�N)r�rz)r�rW)brcrdre�__doc__r�r�rprqr�r�r3r4r8r�
HttpVersion11rErrVr9r�AbstractEventLooprTrUr
�strr@rSrrHrrrrf�objectrXrrQ�intr�r�r>rr�r�r�rYrr�r�bytesrZr5rr�rr!rKrJrr"r�r�r�r�r�r�r�propertyr�r�r�rr�rr�setterr�r�r�r
rr�r�r�r�rrr�r�r�r�r�r�rrr�r�r��
__classcell__)r�s@rjrWrW�s�������9�9��I�	
�	
�	
�
�
�E�6���J�(,�u"�.2�48�*.�*.�59�$(�&*�j�-:�/=�;R�#�1�26� $�!&�-5�(,�08� $��%)�59�!�3u"�u"�u"��8�$�u"��M�*�	u"�
�w�0�1�u"��,�'�
u"��,�'�u"�$�H�S�M�2�u"��y�!�u"�$�u"��M�*�u"��^�,�u"� � 7�8�u"��u"��.�/�u"� �!u"�"�#u"�$�E�6�M�*�%u"�&�u�o�'u"�(�v�}�,�-�)u"�*�+u"�,�-u"�.#�/u"�0 ��[� 1�2�1u"�2�3u"�4
�5u"�u"�u"�u"�n
�t�O�4�
��
�
�
�
�
�
+�	+�C�	+�c�	+�d�	+�	+�	+�	+�	+�	+�(0�7�7��7�D�7�7�7�7�L��L� (�L�47�L�	!�L�L�L�L�,�X�,�#�,�,�,�,�/3���*.�*.�59�$(� $��"&�"&��+/�#�$(�*.�08�%)�'+�,0�>B�04�7;�&*�9s�s�s��s��s�
���c��*�+�s��
s��s��,�'�s��,�'�s�$�H�S�M�2�s��y�!�s��s��s��3�-�s��$��s� �!s�"#�4�.�#s�$�%s�&��!�'s�(�Y�'�)s�*�}�f�,�-�+s�,�T�N�-s�.�e�_�/s�0�j�)�1s�2�e�J��k�9�:�
;�3s�4 ��-�5s�6$�O�4�7s�8�s�m�9s�:
�;s�s�s�s�r	�m�#%��+/���%)�$(� $�.2�*.�$(�*.�:>�%)�'+�,0�04��+�/2
�2
�2
�
�2
��	2
�
�C�=�2
��
2
�"�%��2
��2
��2
��E�?�2
��y�!�2
���
�2
����c��*�+�2
��,�'�2
���!�2
� �Y�'�!2
�"�:�t�T�;�6�
7�#2
�$�T�N�%2
�&�e�_�'2
�(�j�)�)2
�* ��-�+2
�,�-2
�.�/2
�0
$�12
�2
�2
�2
�p�m�#%��+/���%)�$(� $�.2�*.�$(�*.�:>�%)�'+�,0�04��+�/n�n�n�
�n��	n�
�C�=�n��
n�"�%��n��n��n��E�?�n��y�!�n���
�n����c��*�+�n��,�'�n���!�n� �Y�'�!n�"�:�t�T�;�6�
7�#n�$�T�N�%n�&�e�_�'n�(�j�)�)n�* ��-�+n�,�-n�.�/n�0
!�1n�n�n�n�`���(>��CU�����"9=�
�
�
��
�15�
�HK�
�	!�
�
�
�
�9=�
�
�
��
�15�
�HK�
�	!�
�
�
�
�9>�
�
�
��
�15�
�IL�
�	!�
�
�
�
�-1�
�
�
��
�&)�
�<?�
�	!�
�
�
�
�-1�
�
�
��
�&)�
�<?�
�	!�
�
�
�
�-1�
�
�
��
�&)�
�<?�
�	!�
�
�
�
�V�(�V�c�V�6N�V�V�V�V�#�#�#�#��A��A�A�A��X�A���8�M�2�����X��� �-� � � ��X� ����s�C�x������X���*�d�*�*�*��X�*�� �)��)��)�)�)�!� �)���g�/�����X���������X���%�%�%��X�%��'�9�T�?�'�'�'��X�'��"�h�y�)�"�"�"��X�"��$��$�$�$��X�$��%��%�%�%��X�%��&�	�t�X�~�.�	�$��?�@�@�	A�&�&�&��X�&��%��%�%�%��X�%���4�����X���#�t�K�0�#�#�#��X�#�����2�2�2�2�
��4�
�.�/�
��-�(�
���'�	
�

�
�
�
�
�������4�
�.�/���-�(����'�	�

��������rirWc��eZdZdZdeddefddfd�Zdd�Zdeddfd	�Z	dd
�Z
deedeffd�Z
deedeffd�Zdefd
�ZdS)�_BaseRequestContextManager��_coro�_resp�coro�asyncio.Future[Any]Nr�c��||_dSr�)r�)r�r�s  rjr�z#_BaseRequestContextManager.__init__as
����
�
�
ri�argc�6�|j�|��Sr�)r�r�r�r�s  rjrz_BaseRequestContextManager.sendds���z���s�#�#�#ric�:�|j�|��dSr�)r��throwr�s  rjr�z _BaseRequestContextManager.throwgs���
��������ric�4�|j���Sr�)r�rr�s rjrz _BaseRequestContextManager.closejs���z���!�!�!ric�8�|j���}|Sr�)r��	__await__)r��rets  rjr�z$_BaseRequestContextManager.__await__ms���j�"�"�$�$���
ric�*�|���Sr�)r�r�s rj�__iter__z#_BaseRequestContextManager.__iter__qs���~�~���ric��8K�|j�d{V��|_|jSr�r�r�s rjr�z%_BaseRequestContextManager.__aenter__ts)�����:�%�%�%�%�%�%��
��z�ri)r�Nr�r�r�)rcrdre�	__slots__r	rmr�rrr�rrrr�r�r�rhrirjr�r�]s�������"�I��Y�'<�d�H�'L�M��RV�����$�$�$�$����4�����"�"�"�"��9�S�$��%8�9����� �)�C��x�$7�8� � � � ��(������rir�c�Z�eZdZdZdeeedeedeeddfd�ZdS)r�rhr�r=�tbr�Nc��<K�|j���dSr�)r�r'�r�r�r=r�s    rjr�z _RequestContextManager.__aexit__|s"����	
�
�������ri�	rcrdrer�rrrrr�rhrirjr�r�ysg�������I���4�
�.�/���m�
$��
�]�#�	�

������rir�c�Z�eZdZdZdeeedeedeeddfd�ZdS)rHrhr�r=r�r�Nc��HK�|j����d{V��dSr�)r�rr�s    rjr�z"_WSRequestContextManager.__aexit__�s4�����j��� � � � � � � � � � � rir�rhrirjrHrH�sg�������I�!��4�
�.�/�!��m�
$�!�
�]�#�	!�

�!�!�!�!�!�!rirHc��eZdZdZdeddefdeddfd�Zdefd�Zd	e	e
ed
e	ede	eddfd�Z
dS)
�_SessionRequestContextManager�r�r��_sessionr�r�Nr�r�c�0�||_d|_||_dSr�r�)r�r�r�s   rjr�z&_SessionRequestContextManager.__init__�s��
��
�/3��
���
�
�
ric��K�	|j�d{V��|_|jS#t$r!|j����d{V���wxYwr�)r�r�rr�rr�s rjr�z(_SessionRequestContextManager.__aenter__�sv����	�#�z�)�)�)�)�)�)�D�J�
�:���	�	�	�	��-�%�%�'�'�'�'�'�'�'�'�'��	���s	��+Ar�r=r�c��K�|j�J�|j���|j����d{V��dSr�)r�rr�r�s    rjr�z'_SessionRequestContextManager.__aexit__�sV�����z�%�%�%��
�������m�!�!�#�#�#�#�#�#�#�#�#�#�#ri)rcrdrer�r	r4rWr�r�rrrrr�rhrirjr�r��s�������.�I� ��-�t�^�C�D� �� �
�	 � � � ��.�����$��4�
�.�/�$��m�
$�$�
�]�#�	$�

�$�$�$�$�$�$rir�r�F)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�c���d}|�d}t|d���}t||||||���}t|�||||||||||	|
|||
||||���|��S)a�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
      >>> resp = await aiohttp.request('GET', 'http://python.org/')
      >>> resp
      <ClientResponse(python.org/) [200]>
      >>> data = await resp.read()
    FNT)r��force_close)r�r�r�r�r�r�)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�)r;rWr�r�)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�s                         rjrYrY�s���|�O����� �d��=�=�=�	��
�����'�
���G�)����������/��+�'����-�)��!�%�%	�	
�	
�(	�+��ri)�r�rr^rir�r`r�r�r��
contextlibr�typesrr�typingrrrr	r
rrr
rrrrrrrrr��	multidictrrrr�yarlrrrrr�abcr�client_exceptionsr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2�
client_reqrepr3r4r5r6r7�	client_wsr8r�r9r:r;r<�	cookiejarr=�helpersr>r?r@rArBrCrDrErFrGrHrIrJ�http_websocketrKrLrMrN�streamsrO�tracingrPrQ�typedefsrRrSrTrUrV�__all__r�rZ�ImportErrorr��srXrlrgrmrWr�r�rHr�r�r�rr�r�rYrhrirj�<module>r�s����������
�
�
�
���������	�	�	�	�
�
�
�
���������������0�0�0�0�0�0�0�0�������������������������������������&����B�B�B�B�B�B�B�B�B�B�B�B�������!�!�!�!�!�!�!�!�!�!�"�"�"�"�"�"�������������������������������������������*��������������J�I�I�I�I�I�������������!� � � � � �
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�H�G�G�G�G�G�G�G�G�G�G�G�Q�Q�Q�Q�Q�Q�Q�Q�Q�Q�Q�Q�)�)�)�)�)�)�'�'�'�'�'�'�'�'�N�N�N�N�N�N�N�N�N�N�N�N�N�N�%��P��������������J�J�J��������T�$�d�3�3�3�)�)�)�)�)�)�)�4�3�)�*)6�
�F�(C�(C�(C���}�%�C�C�C��7�:����v�v�v�v�v�v�v�v�r������3��X�+=�!>���@Q����8�����7��G����"	!�	!�	!�	!�	!�9�:Q�R�	!�	!�	!�$�$�$�$�$�$�$�$�J+/���&*�15� $� ��"�"��'+�� $�&*�,4�&*��-�)-�"&�04�1b�b�b��b�	�b�
�W�S�#�X�&�'�	b�
�b��
b��l�
#�b� ���
�.�b��9�
�b��b��b��s�m�b��d�^�b��b��t�n�b� �!b�"�H��#b�$��#�%b�&�=�&�(�
)�'b�(�l�
#�)b�*�+b�,�
�&�-b�.�3�-�/b�0�7�,�
-�1b�2#�3b�b�b�b�b�bs�D � D*�)D*

Zerion Mini Shell 1.0