ok

Mini Shell

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

�

�܋f���5�8�UdZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZm
Z
ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z ddl!Z!ddl"m#Z#m$Z$m%Z%m&Z&ddl'm(Z(dd	l)m*Z*m+Z+m,Z,dd
l-m.Z.ddl/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBddlCmDZDmEZEmFZFmGZGmHZHdd
lImJZJddlKmLZLmMZMmNZNmOZOddlPmQZQddlRmSZSmTZTmUZUmVZVmWZWmXZXmYZYmZZZm[Z[m\Z\ddl+m]Z]m^Z^m_Z_m`Z`ddlambZbmcZcmdZdmeZeddlfmgZgddlhmiZimjZjddlkmlZlmmZmmnZnmoZodZperddlqmrZrndZre!jsddd���Gd�d����Ztetd���Zueetevd<ed��ZweeEexgeyfZzGd �d!��Z{Gd"�d#eeeewfeew��Z|Gd$�d%e|eE��Z}Gd&�d'e|eJ��Z~Gd(�d)��Zdddddddd*ddd+dddde[de+j�dddd,d,d-�d.eyd/eod0eeeyeyfd1ed2ed3eend4eeeyd5eeUd6e�d7e�d8eeyd9ee�d:e�d;ee�d<e�d=eeod>eeUd?e ete�fd@eemdAe^dBeeLdCee�dDeej�dEe�dFe�dGef4dH�Z�dS)IzHTTP Client for asyncio.�N)�suppress)�SimpleNamespace�
TracebackType)�
TYPE_CHECKING�Any�	Awaitable�Callable�	Coroutine�Final�	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)
�	_SENTINEL�DEBUG�	BasicAuth�
TimeoutHandle�ceil_timeout�get_env_proxy_for_url�get_running_loop�method_must_be_empty_body�sentinel�strip_auth_from_url)�WS_KEY�HttpVersion�WebSocketReader�WebSocketWriter)�WSHandshakeError�	WSMessage�
ws_ext_gen�ws_ext_parse)�FlowControlDataQueue)�Trace�TraceConfig)�JSONEncoder�LooseCookies�LooseHeaders�StrOrURL)r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r;r=r>r<r:�
ClientSession�
ClientTimeout�request)�
SSLContextT)�auto_attribs�frozen�slotsc��eZdZUdZeeed<dZeeed<dZeeed<dZ	eeed<dZ
eed<dS)rZN�total�connect�	sock_read�sock_connect��ceil_threshold)�__name__�
__module__�__qualname__rar�float�__annotations__rbrcrdrf���E/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/client.pyrZrZ�sr�������!�E�8�E�?�!�!�!�#�G�X�e�_�#�#�#�!%�I�x���%�%�%�$(�L�(�5�/�(�(�(��N�E�����rmrZi,�ra�DEFAULT_TIMEOUT�_RetTypec?�p��eZdZUdZegd���ZdZeej	e
d<dZeee
d<	ddddddde
jeeeejdddededddddd	d	d
�d�deed
eedeejdeedeedeeedeededeedeedeededee de!de"e!e#ege$dffde"e%e&fdee%de"e'e(fde!de!d e!d!ee)e*d"e+d#e+d$e+d%e,d&df6d'�Z-d(edd&dfd)�Z.e/rd*ed+e0d&df�fd,�Z1e2fd-e0d&dfd.�Z3d/ed0ed1e0d&d2fd3�Z4d4ed&e5fd5�Z6ddddddddd6dddddddedddddddddddd7�d/ed4ed8ee7eefd9e0d:e0deedeedeeedeed;e!d<e+d=eed>ee!d?e!de"de!e#ege$dffd@e!dAeedBeede"e(e&fdCee!dDee8dEee9dFe"e9e!e:fdGeedHeedIee;d"ee+dee!d#ee+d$ee+d&ef>dJ�Z<e=j>dKdLddddddddddddddddMdNdO�d0ed/edPeede%dQee%dRe!dSe!dTee%deedUeed8ee7eefdeedAeedBeedFe"e9e!de:fdCee!dDee8dEee9dHeed=e+dVe+d&dWf,dX�Z?e=j>dKdLddddddddddddddddMdNdO�d0ed/edPeede%dQee%dRe!dSe!dTee%deedUeed8ee7eefdeedAeedBeedFee"e9e!e:fdCee!dDee8dEee9dHeed=e+dVe+d&ef,dY�Z@deed&dZfd[�ZAdd\�d0ed;e!d1e0d&d2fd]�ZBdd\�d0ed;e!d1e0d&d2fd^�ZCdd\�d0ed;e!d1e0d&d2fd_�ZDdd`�d0ed9e0d1e0d&d2fda�ZEdd`�d0ed9e0d1e0d&d2fdb�ZFdd`�d0ed9e0d1e0d&d2fdc�ZGd0ed1e0d&d2fdd�ZHd�de�ZIeJd&e!fdf���ZKeJd&eefdg���ZLeJd&e fdh���ZMeJd&eNe+e+ffdi���ZOeJd&e!fdj���ZPePjQd+e!d&dfdk���ZPeJd&ejfdl���ZReJd&e(fdm���ZSeJd�dn���ZTeJd&eUeVfdo���ZWeJd&eefdp���ZXeJd&efdq���ZYeJd&e!fdr���ZZeJd&e"e!e#ege$dfffds���Z[eJd&e!fdt���Z\eJd&e!fdu���Z]eJd&e)e*fdv���Z^d�dw�Z_d�dx�Z`dyeeeadzeead{eebd&dfd|�Zcd�d}�Zddyeeeadzeead{eebd&dfd~�Ze�xZfS)�rYz/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_bufsize�_max_line_size�_max_field_size�_resolve_charsetNrtruTF��c��dS)Nzutf-8rl)�r�bs  rn�<lambda>zClientSession.<lambda>�s��7�rm)�	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_envrv�
trace_configs�read_bufsize�
max_line_size�max_field_size�fallback_charset_resolver�base_urlr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rvr�r�r�r�r��returnc�&�|�	|�|j}t|��}|�t|t��r||_n@t|��|_|j���|jks
Jd���|�t
|���}|j|urtd���||_|���r+tj
tjd����|_
|
�t|���}
|
|_|�|j�|��||_||_||_||_||_|t,us|��t.|_|t,ur<t3jdt6d���t9j|j|���|_|�<t9j|j|�	��|_t3jd
t6d���net|t<��s t?dtA|���d����||_|t,urt?d
���|�t?d���||_!||_"||_#||_$||_%||_&||_'|rtQ|��}ntQ��}||_)|�tUd�|D����|_+ntU��|_+|	|_,|
|_-||_.|pg|_/|j/D]}|�0���||_1dS)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���
stacklevelro)rbz8conn_timeout is deprecated, use timeout argument insteadztimeout 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.connectc3�4K�|]}t|��V��dS�N)r)�.0�is  rn�	<genexpr>z)ClientSession.__init__.<locals>.<genexpr>Ds(����/S�/S�A��Q���/S�/S�/S�/S�/S�/Srm)2rwrF�
isinstancerrs�originr=�RuntimeError�	get_debug�	traceback�
extract_stack�sys�	_getframertr?rx�update_cookiesruryrzr{r|rHrpr~�warnings�warn�DeprecationWarning�attr�evolverZ�
ValueError�typerr�r�r}r�r�r�rr��	frozensetr�r�r�r�r��freezer�)�selfr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rvr�r�r�r�r��real_headers�trace_configs                             rn�__init__zClientSession.__init__�sc��@�<��$� �����%�%����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�&� �������g�}�5�5�
� �>�d�7�m�m�>�>�>����$�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����!�!�!�!� 9����rm�clsc�n�tjd�|j��td���dS)Nz6Inheritance class {} from ClientSession is discouragedr�r�)r�r��formatrgr�)r�s rn�__init_subclass__zClientSession.__init_subclass__Rs?���
�
�#�V�C�L�1�1���		
�	
�	
�	
�	
�	
rm�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   �rnr�zClientSession.__setattr__\sa����4�:�%�%��
�%�%+�V�D�\�\�&� �	����
�G�G����c�*�*�*�*�*rm�	_warningsc��|jsMd|i}|jd|��tfi|��|dd�}|j�
|j|d<|j�|��dSdS)N�sourcezUnclosed client session zUnclosed client session)�client_session�message�source_traceback)�closedr��ResourceWarningrtrw�call_exception_handler)r�r��kwargs�contexts    rn�__del__zClientSession.__del__fs����{�	7���%�F��I�N�3�4�3�3�_�
�
�HN�
�
�
�*.�:S�T�T�G��%�1�.2�.D��*�+��J�-�-�g�6�6�6�6�6�	7�	7rm�method�urlr��_RequestContextManagerc�:�t|j||fi|����S)zPerform HTTP request.)r��_request)r�r�r�r�s    rnr[zClientSession.requestqs(��&�m�d�m�F�C�&J�&J�6�&J�&J�K�K�Krm�
str_or_urlc���t|��}|j�|S|���s|j�d��sJ�|j�|��S)N�/)rrs�is_absolute�path�
startswith�join)r�r�r�s   rn�
_build_urlzClientSession._build_urlws[���*�o�o���>�!��J����(�(�E�S�X�-@�-@��-E�-E�E�E�E��>�&�&�s�+�+�+rm�
)�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�server_hostname�
proxy_headers�trace_request_ctxr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrc�����K��jrtd���t||||��}|�|�td���|�t	j|�j���}t|
t��s|
�tj
dt��d}g} �j}!|pi}��
|��}��
|��}	��|��}"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���}'|'���}(|��j}|��j}|��j}|��j }��fd��j!D��})|)D]2}*|*�"||"�#|��|���d{V���3|'�$��}+	|+5	tK|"��\}"},|	r|,rtd
���|	�|,}	|	��j&}	|�|	�tNj(|vrtd����j)�*|"��}-|�OtW��}.|.�,|��|.�*|"��}/|/r|-�-|/��|�t)|��}nE�j.r>t_t`��5tc|"��\}}ddd��n#1swxYwY��2||"|||$||-|	|!||
|�j�j3|||+�|�|nd	|||)�j4���}0	tk|&j6|&j���4�d{V���j7�J��j7�6|0|)|&�
���d{V��}1ddd���d{V��n#1�d{V��swxYwYn:#tpj9$r(}2tud�;|"����|2�d}2~2wwxYw|1j<�J�|1j=�J�|1j=�>|+t|��|||&j@|�j7jA||��	�			|0�B|1���d{V��}3	|3�|1���d{V��n##t�$r|3�D���wxYwn##t�$r|1�D���wxYwnM#t�$r�t�$r6}2|2jG�t|2tpj9��r�t�|2jI�|2�d}2~2wwxYw�j)�,|3jJ|3jK��|3jLdv�rf|
�rc|)D]3}*|*�M||"�#|��||3���d{V���4|dz
}| �N|3��|rB||kr<|3�D��t�| djPt�| �����|3jLdkr|3jRtNjSks|3jLdvra|3jRtNjTkrLtNjU}d}|�VtNjW��r|�XtNjW��|3jY�VtNjZ��p#|3jY�VtNj[��}4|4�n�|3�\��	t)|4�j]���}5n"#t$r}#t|4��|#�d}#~#wwxYw|5j^}6|6dvr#|3�D��td���|6s|"�_|5��}5|"�`��|5�`��kr"d}	|�XtNj(d��|5}"i}|3�\�����	ddd��n#1swxYwY|��ja}|�n7t�|��r||3���d{V��n|r|3�c��|(�;|3jd� |3jd�e|(jf��n|(�f��t�| ��|3_g|)D]3}*|*�h||"�#|��||3���d{V���4|3S#t�$rh}#|'�D��|(r|(�f��d}(|)D]3}*|*�i||"�#|��||#���d{V���4�d}#~#wwxYw)NzSession is closedz9data and json parameters can not be used at the same time)�dumpszChunk size is deprecated #1615rro)rfc	�Z��g|]'}t�||���������(S))r)rS�trace_config_ctx)r�r�r�rs  ��rn�
<listcomp>z*ClientSession._request.<locals>.<listcomp>�sP���
�
�
��
����-�-�@Q�-�R�R�
�
�
�
�
rmTz<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�rr�tracesr�)r
r�zConnection timeout to host {})	r�skip_payloadr�r�r�r��timeout_ceil_thresholdr�r�)�-�.�/i3i4rr)r
r)�encoded)r�https�z"Can redirect only to http or https)jr�r�r9r�r �JsonPayloadr|r��boolr�r�r�r{�_prepare_headersr�r.�setr��addrrrHr~rZrCrwrarf�startr�r�r�r�r��send_request_start�update_queryrrIrzr�
AUTHORIZATIONrx�filter_cookiesr?r��loadr�r�LookupErrorrEr�r�r�rDrbru�asyncio�TimeoutErrorr2r��	transport�protocol�set_response_paramsrGrc�_timeout_ceil_threshold�send�
BaseException�closer&�OSError�errnor(�argsr�r��status�send_request_redirect�appendr3�request_info�tupler��	METH_HEAD�	METH_POST�METH_GET�get�CONTENT_LENGTH�popr��LOCATION�URI�releaser}�schemer�r�r�callabler��
connection�add_callback�cancel�_history�send_request_end�send_request_exception)7r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr�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_urlr9s7`                         `                            rnr�zClientSession._requests�������R�;�	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��	����-����2���'�'��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�;�;�;���&����J��*�<�;V�
�
�
�����������-�L��"�"�3�O�� � �/�M��!�!�1�N�
�
�
�
�
�!%� 3�

�
�
���	V�	V�E��*�*�6�3�3C�3C�F�3K�3K�W�U�U�U�U�U�U�U�U�U�U����
�
��Z	��r
�r
�q�)<�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�'+�';�#�#-�#� $�#&�?�C�C��(7�&3�%�"&�.�/.���C�6#�#/�(�0�+7�+F�$�$�$���������$(�?�#>�#>�#>�)-��)@�)@� #�F�L�*A�*�*�$�$�$�$�$�$�D���������������������������������#�/�#�#�#�0�>�E�E�c�J�J���"�#�����#����
 �>�5�5�5��=�4�4�4��M�5�5�#�%>�v�%F�%F�'5�(7�%1�%;�%1�/3��/V�&3�'5�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�(��!#�������� ��er
�r
�r
�r
�r
�r
�r
�r
�r
�r
�r
����r
�r
�r
�r
�j �'�#'�#9� ��'���*�+�+�
(�&�&�t�,�,�,�,�,�,�,�,�,�,�!�
(��%�%�'�'�'��!��?�.��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�����������
�����	���sQ�C�
C=�(C8�8C=�E�
E/�E*�*E/�"d�$C-`)�M0�$`)�0M4	�4`)�7M4	�8A`)�;!P-�-P�	P-�
P%	�%P-�(P%	�)P-�,`)�-Q$�<#Q�Q$�$A`)�:T�S2�1T�2 T�T�T:� T6�6T:�9`)�:V�1U?�?V�F2`)�7]�`)�
].�])�)].�.B/`)�d�)`-�-d�0`-�1Cd�
e2�
A#e-�-e2rlg$@ri@�r��	protocolsr��receive_timeout�	autoclose�autoping�	heartbeatr�r�r�r�r�r�r�r�r�r�rr��max_msg_sizerTrUrVrWrXr�rY�_WSRequestContextManagerc�p�t|�|||||||||	|
|||
||||||||�����S)zInitiate websocket connection.rS)rZ�_ws_connect)r�r�r�rTr�rUrVrWrXr�r�r�r�r�r�r�r�r�r�rr�rYs                      rn�
ws_connectzClientSession.ws_connect�sm��4(������#�� /�#�!�#������%��%�'�'�+�!�)�+
�
�
�
�
�	
rmc��	K�|�t��}nt|��}tjdtjdtjdi}|���D]\}}|�||���tjtj
d����}|���|tj<|r"d�
|��|tj<|
�|
|tj<|rt!|���}||tj<|�d}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�TF)r�r�r�r�r�r�r�r�ezInvalid response status)r�r+r�rzInvalid upgrade header�upgradezInvalid connection headerzInvalid challenge responsec�6�g|]}|�����Srl)�strip)r��protos  rnrz-ClientSession._ws_connect.<locals>.<listcomp>ys0��"�"�"���K�K�M�M�"�"�"rmrr�r�)�use_maskr��
notakeover)rUrXr��client_notakeover)/rr�UPGRADE�
CONNECTION�SEC_WEBSOCKET_VERSION�items�
setdefault�base64�	b64encode�os�urandom�decode�SEC_WEBSOCKET_KEYr��SEC_WEBSOCKET_PROTOCOL�ORIGINrP�SEC_WEBSOCKET_EXTENSIONSr9r[r+r4r.rBr�r3�lower�SEC_WEBSOCKET_ACCEPT�hashlib�sha1rJ�digest�splitrQrNr*r;r"r!rRrw�
set_parserrLrMr�r&r')*r�r�r�rTr�rUrVrWrXr�r�r�r�r�r�r�r�r�r�rr�rYr��default_headers�key�value�sec_key�extstrrP�r_key�matchr"�resp_protocolsrhrj�
compress_hdrsrOrN�
conn_protor!�reader�writers*                                          rnr\zClientSession._ws_connects;����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��;��C���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&�3N�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�rrrror)r�r��result�added_namesr�r�s      rnrzClientSession._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�(�(�(�(��
rm)r�c�R�t|jtj|fd|i|����S)zPerform HTTP GET request.r�)r�r�rr2�r�r�r�r�s    rnr3zClientSession.get�s7��&��D�M�$�-��X�X�o�X�QW�X�X�
�
�	
rmc�R�t|jtj|fd|i|����S)zPerform HTTP OPTIONS request.r�)r�r�r�METH_OPTIONSr�s    rn�optionszClientSession.options�sD��&��D�M��!�3�
�
�8G�
�KQ�
�
�
�
�	
rmc�R�t|jtj|fd|i|����S)zPerform HTTP HEAD request.r�)r�r�rr0r�s    rn�headzClientSession.head�sC��&��D�M����
�
�5D�
�HN�
�
�
�
�	
rm)r�c�R�t|jtj|fd|i|����S)zPerform HTTP POST request.r�)r�r�rr1�r�r�r�r�s    rn�postzClientSession.post�s6��&��D�M�$�.�#�C�C�D�C�F�C�C�
�
�	
rmc�R�t|jtj|fd|i|����S)zPerform HTTP PUT request.r�)r�r�r�METH_PUTr�s    rn�putzClientSession.put�s6��&��D�M�$�-��B�B�4�B�6�B�B�
�
�	
rmc�R�t|jtj|fd|i|����S)zPerform HTTP PATCH request.r�)r�r�r�
METH_PATCHr�s    rn�patchzClientSession.patch�s6��&��D�M�$�/�3�D�D�T�D�V�D�D�
�
�	
rmc�N�t|jtj|fi|����S)zPerform HTTP DELETE request.)r�r�r�METH_DELETE)r�r�r�s   rn�deletezClientSession.delete�s)��%�m�d�m�D�4D�c�&T�&T�V�&T�&T�U�U�Urmc��K�|js6|j�&|jr|j����d{V��d|_dSdS)zMClose underlying connector.

        Release all acquired resources.
        N)r�ruryr'�r�s rnr'zClientSession.closes]����
�{�	#���*�t�/D�*��o�+�+�-�-�-�-�-�-�-�-�-�"�D�O�O�O�	#�	#rmc�,�|jdup|jjS)z@Is client session closed.

        A readonly property.
        N)rur�r�s rnr�zClientSession.closeds����$�&�@�$�/�*@�@rmc��|jS)z(Connector instance used for the session.�rur�s rnr�zClientSession.connectors����rmc��|jS)zThe session cookies.)rxr�s rnr�zClientSession.cookie_jars
����rmc��|jS)z"The session HTTP protocol version.)r{r�s rnr�zClientSession.version����}�rmc��|jS)�)Do URL requoting on redirection handling.)r}r�s rnrvz"ClientSession.requote_redirect_url#s
���)�)rmc�L�tjdtd���||_dS)r�z=session.requote_redirect_url modification is deprecated #2778r�r�N)r�r�r�r})r�r�s  rnrvz"ClientSession.requote_redirect_url(s6��	�
�N���	
�	
�	
�	
�
&)��"�"�"rmc�H�tjdtd���|jS)zSession's loop.z"client.loop property is deprecatedr�r�)r�r�r�rwr�s rnr�zClientSession.loop2s0��	�
�0�2D�QR�	
�	
�	
�	
��z�rmc��|jS)zTimeout for the session.)r~r�s rnr�zClientSession.timeout:r�rmc��|jS)z*The default headers of the client session.)r�r�s rnr�zClientSession.headers?�
���$�$rmc��|jS)z2Headers for which autogeneration should be skipped)r�r�s rnr�zClientSession.skip_auto_headersDs
���&�&rmc��|jS)z2An object that represents HTTP Basic Authorization)rzr�s rnr�zClientSession.authIs
���!�!rmc��|jS)zJson serializer callable)r|r�s rnr�zClientSession.json_serializeNs
���#�#rmc��|jS)z-Should connector be closed on session closing)ryr�s rnr�zClientSession.connector_ownerSr�rmc��|jS)zGShould `ClientResponse.raise_for_status()` be called for each response.)rr�s rnr�zClientSession.raise_for_statusXs
��
�%�%rmc��|jS)z7Should the body response be automatically decompressed.)r�r�s rnr�zClientSession.auto_decompress_r�rmc��|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 rnr�zClientSession.trust_envds����rmc��|jS)z7A list of TraceConfig instances used for client tracing)r�r�s rnr�zClientSession.trace_configsns
���"�"rmc��d|_dS)zwDetach connector from session without closing the former.

        Session is switched to closed state anyway.
        Nr�r�s rn�detachzClientSession.detachss��
����rmc� �td���)NzUse async with instead)�	TypeErrorr�s rn�	__enter__zClientSession.__enter__zs���0�1�1�1rm�exc_type�exc_val�exc_tbc��dSr�rl�r�r�r�r�s    rn�__exit__zClientSession.__exit__}s	��	
�rmc��
K�|Sr�rlr�s rn�
__aenter__zClientSession.__aenter__�s�����rmc��>K�|����d{V��dSr�)r'r�s    rn�	__aexit__zClientSession.__aexit__�s.�����j�j�l�l���������rmr��r�N)r�r�)r�rY)grgrhri�__doc__r�r�rtrr��StackSummaryrkrur;r�rr5r6r:r�
HttpVersion11rHrXr�AbstractEventLooprVrWr�strrBrUrrKr!rrr	rrjr@�objectrZrrT�int�_CharsetResolverr�r�rArr�r�r�r[rr�r�bytesr\r7rr�rr2r]r\rr3r�r�r�r�r�r�r'�propertyr�r�r�rr�rv�setterr�r�r�rrr�r�r�r�r�r�r�r�r�r�r&rr�r�r��
__classcell__)r�s@rnrYrY�s���������9�9��I�	
�	
�	
�
�
�E�<;?��x�	� 6�7�>�>�>�*.�J���'�.�.�.�(,�C:�.2�48�*.�*.�59�$(�&*�j�-:�/=�;R�#�1�26� $�
�08�(,�08� $��%)�59�!�!�"�6J�6J�=C:�C:�C:��8�$�C:��M�*�	C:�
�w�0�1�C:��,�'�
C:��,�'�C:�$�H�S�M�2�C:��y�!�C:�$�C:��M�*�C:��^�,�C:� � 7�8�C:��C:��.�/�C:� �!C:�" ��(�N�+�Y�t�_�<�=�=�
�#C:�(�E�9�,�-�)C:�*�u�o�+C:�,�v�}�,�-�-C:�.�/C:�0�1C:�2#�3C:�4 ��[� 1�2�5C:�6�7C:�8�9C:�:�;C:�<$4�=C:�>
�?C:�C:�C:�C:�J
�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�$(� $��"&�"&��
�#�$(�*.�3;�%)�'+�,0�48�)-�04�7;�&*�*.�'+�(,�ER�R�R��R��R�
���c��*�+�R��
R��R��,�'�R��,�'�R�$�H�S�M�2�R��y�!�R��R��R��3�-�R��$��R� �!R�" ��$��.�!1�9�T�?�!B�C�C�
�#R�(�)R�*��!�+R�,�Y�'�-R�.�}�i�/�0�/R�0�T�N�1R�2�e�_�3R�4�j�)�5R�6�:�t�[�0�
1�7R�8"�#��9R�: ��-�;R�<$�O�4�=R�>�s�m�?R�@"�$��AR�B ��}�CR�D!��
�ER�F
�GR�R�R�R�p
�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�*.�$(�*.�>B�%)�'+�,0�04��+�/q�q�q�
�q��	q�
�C�=�q��
q�"�%��q��q��q��E�?�q��y�!�q���
�q����c��*�+�q��,�'�q���!�q� �Y�'�!q�"�e�J��k�9�:�
;�#q�$�T�N�%q�&�e�_�'q�(�j�)�)q�* ��-�+q�,�-q�.�/q�0
!�1q�q�q�q�f���(>��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�
�.�/���-�(����'�	�

��������rmrYc��eZdZdZdeddefddfd�Zdd�Zd	ed
eddfd�Z	dd�Z
deedeffd
�Zdeedeffd�Z
defd�ZdS)�_BaseRequestContextManager��_coro�_resp�coro�asyncio.Future[Any]Nr�c��||_dSr�)r�)r�r�s  rnr�z#_BaseRequestContextManager.__init__�s
����
�
�
rm�argc�6�|j�|��Sr�)r�r%)r�r�s  rnr%z_BaseRequestContextManager.send�s���z���s�#�#�#rmr*r�c�&�|jj|i|��Sr�)r��throw)r�r*r�s   rnr�z _BaseRequestContextManager.throw�s���t�z���0��0�0�0rmc�4�|j���Sr�)r�r'r�s rnr'z _BaseRequestContextManager.close�s���z���!�!�!rmc�8�|j���}|Sr�)r��	__await__)r��rets  rnr�z$_BaseRequestContextManager.__await__�s���j�"�"�$�$���
rmc�*�|���Sr�)r�r�s rn�__iter__z#_BaseRequestContextManager.__iter__�s���~�~���rmc��8K�|j�d{V��|_|jSr�r�r�s rnr�z%_BaseRequestContextManager.__aenter__�s)�����:�%�%�%�%�%�%��
��z�rm)r�Nr�r�r�)rgrhri�	__slots__r
rqr�r%rr�r'r
r�r�r�rlrmrnr�r��s������"�I��Y�'<�d�H�'L�M��RV�����$�$�$�$�1�3�1�#�1�2G�1�1�1�1�"�"�"�"��9�S�$��%8�9����� �)�C��x�$7�8� � � � ��(������rmr�c�Z�eZdZdZdeeedeedeeddfd�ZdS)r�rlr�rO�tbr�Nc��zK�|j���|j����d{V��dSr�)r�r8�wait_for_close�r�r�rOr�s    rnr�z _RequestContextManager.__aexit__�sH����	
�
�������j�'�'�)�)�)�)�)�)�)�)�)�)�)rm�	rgrhrir�rrr&rr�rlrmrnr�r��sg�������I�*��4�
�.�/�*��m�
$�*�
�]�#�	*�

�*�*�*�*�*�*rmr�c�Z�eZdZdZdeeedeedeeddfd�ZdS)rZrlr�rOr�r�Nc��HK�|j����d{V��dSr�)r�r'r�s    rnr�z"_WSRequestContextManager.__aexit__�s4�����j��� � � � � � � � � � � rmr�rlrmrnrZrZ�sg�������I�!��4�
�.�/�!��m�
$�!�
�]�#�	!�

�!�!�!�!�!�!rmrZc��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   rnr�z&_SessionRequestContextManager.__init__�s��
��
�/3��
���
�
�
rmc��K�	|j�d{V��|_|jS#t$r!|j����d{V���wxYwr�)r�r�r&r�r'r�s rnr�z(_SessionRequestContextManager.__aenter__�sv����	�#�z�)�)�)�)�)�)�D�J�
�:���	�	�	�	��-�%�%�'�'�'�'�'�'�'�'�'��	���s	��+Ar�rOr�c��K�|j�J�|j���|j����d{V��dSr�)r�r'r�r�s    rnr�z'_SessionRequestContextManager.__aexit__�sV�����z�%�%�%��
�������m�!�!�#�#�#�#�#�#�#�#�#�#�#rm)rgrhrir�r
r6rYr�r�rrr&rr�rlrmrnr�r��s�������.�I� ��-�t�^�C�D� �� �
�	 � � � ��.�����$��4�
�.�/�$��m�
$�$�
�]�#�	$�

�$�$�$�$�$�$rmr�r�Fr�)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�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�r�)r=rYr�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	s                           rnr[r[�s���@�O����� �d��=�=�=�	��
�����'�
���G�)����������/��+�'����-�)��!�%�'�)�)	�	
�	
�,	�/��rm)�r�rrqr|r�rsr�r�r��
contextlibr�typesrr�typingrrrr	r
rrr
rrrrrrrrrrr��	multidictrrrr�yarlrrrrr �abcr!�client_exceptionsr"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4�
client_reqrepr5r6r7r8r9�	client_wsr:r�r;r<r=r>�	cookiejarr?�helpersr@rArBrCrDrErFrGrHrIrJrKrLrM�http_websocketrNrOrPrQ�streamsrR�tracingrSrT�typedefsrUrVrWrX�__all__r�r\�srZrprkrqr�r�r�rYr�r�rZr�r�rr�r�r�r[rlrmrn�<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�)�)�)�)�)�)�'�'�'�'�'�'�'�'�G�G�G�G�G�G�G�G�G�G�G�G�%��P����������J����T�$�d�3�3�3��������4�3��,)6�
�F�(C�(C�(C���}�%�C�C�C��7�:�����^�U�3�S�8�9��f�f�f�f�f�f�f�f�R������3��X�+=�!>���@Q����8*�*�*�*�*�7��G�*�*�*�$	!�	!�	!�	!�	!�9�:Q�R�	!�	!�	!�$�$�$�$�$�$�$�$�J+/���&*�15� $� ��"�"��'+�� $�&*�,4�&*��-�)-�"&�04���5f�f�f��f�	�f�
�W�S�#�X�&�'�	f�
�f��
f��l�
#�f� ���
�.�f��9�
�f��f��f��s�m�f��d�^�f��f��t�n�f� �!f�"�H��#f�$��#�%f�&�=�&�(�
)�'f�(�l�
#�)f�*�+f�,�
�&�-f�.�3�-�/f�0�7�,�
-�1f�2�3f�4�5f�6#�7f�f�f�f�f�frm

Zerion Mini Shell 1.0