%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/requests/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/requests/__pycache__/models.cpython-312.pyc

�

�kd����d�dZddlZddlZddlmZddlmZmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZdd	lmZmZdd
lmZddlmZmZmZmZmZmZmZddlmZ dd
lm!Z!m"Z"m#Z#ddl$m%Z%m&Z&m'Z'ddl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.ddl(mZ/ddl(m0Z0ddl(mZ1ddl(m2Z2ddl3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCe6j�e6j�e6j�e6j�e6j�fZIdZJdZKdZLGd�d�ZMGd�d�ZNGd�d eN�ZOGd!�d"eMeN�ZPGd#�d$�ZQy)%z`
requests.models
~~~~~~~~~~~~~~~

This module contains the primary objects that power Requests.
�N)�UnsupportedOperation)�DecodeError�LocationParseError�
ProtocolError�ReadTimeoutError�SSLError)�RequestField)�encode_multipart_formdata)�	parse_url�)�to_native_string�unicode_is_ascii)�
HTTPBasicAuth)�Callable�JSONDecodeError�Mapping�
basestring�builtin_str�chardet�	cookielib)�json)�	urlencode�urlsplit�
urlunparse)�_copy_cookie_jar�cookiejar_from_dict�get_cookie_header)�ChunkedEncodingError�ConnectionError�ContentDecodingError�	HTTPError�InvalidJSONError�
InvalidURL)r)�
MissingSchema)r)�StreamConsumedError)�
default_hooks)�codes)�CaseInsensitiveDict)
�check_header_validity�get_auth_from_url�guess_filename�guess_json_utf�iter_slices�parse_header_links�requote_uri�stream_decode_response_unicode�	super_len�to_key_val_list�i(ic�<�eZdZed��Zed��Zed��Zy)�RequestEncodingMixinc���g}t|j�}|j}|sd}|j|�|j}|r"|jd�|j|�dj|�S)zBuild the path URL to use.�/�?�)r�url�path�append�query�join)�selfr:�pr;r=s     �1/usr/lib/python3/dist-packages/requests/models.py�path_urlzRequestEncodingMixin.path_urlUse�����T�X�X����v�v����D��
�
�4��������J�J�s�O��J�J�u���w�w�s�|��c	��t|ttf�r|St|d�r|St|d�r�g}t	|�D]�\}}t|t
�st|d�s|g}|D]Z}|��|j
t|t�r|jd�n|t|t�r|jd�n|f��\��t|d��S|S)z�Encode parameters in a piece of data.

        Will successfully encode parameters when passed as a dict or a list of
        2-tuples. Order is retained if data is a list of 2-tuples but arbitrary
        if parameters are supplied as a dict.
        �read�__iter__�utf-8T)�doseq)	�
isinstance�str�bytes�hasattrr2rr<�encoder)�data�result�k�vs�vs     rA�_encode_paramsz#RequestEncodingMixin._encode_paramsjs����d�S�%�L�)��K�
�T�6�
"��K�
�T�:�
&��F�(��.�

���2��b�*�-�W�R��5L���B���A��}��
�
�5?��3�5G����� 1�Q�5?��3�5G����� 1�Q����

��V�4�0�0��KrCc	��|std��t|t�rtd��g}t|xsi�}t|xsi�}|D]�\}}t|t�st	|d�s|g}|D]u}|��t|t
�st
|�}|jt|t
�r|jd�n|t|t�r|jd�n|f��w��|D]�\}}d}d}	t|ttf�r1t|�dk(r|\}
}n.t|�dk(r|\}
}}n|\}
}}}	nt|�xs|}
|}t|tt
tf�r|}n"t	|d�r|j�}n|���|}t!|||
|	�	�}
|
j#|�
�|j|
���t%|�\}}||fS)a�Build the body for a multipart/form-data request.

        Will successfully encode files when passed as a dict or a list of
        tuples. Order is retained if data is a list of tuples but arbitrary
        if parameters are supplied as a dict.
        The tuples may be 2-tuples (filename, fileobj), 3-tuples (filename, fileobj, contentype)
        or 4-tuples (filename, fileobj, contentype, custom_headers).
        zFiles must be provided.zData must not be a string.rFNrG��rE)�namerN�filename�headers)�content_type)�
ValueErrorrIrr2rLrKrJr<�decoderM�tuple�list�lenr+�	bytearrayrEr	�make_multipartr
)�filesrN�
new_fields�fields�field�valrRrP�ft�fh�fn�fp�fdata�rf�bodyrZs                rA�
_encode_filesz"RequestEncodingMixin._encode_files�s�����6�7�7�
��j�
)��9�:�:��
� ����,������,�� �	�J�E�3��#�z�*�'�#�z�2J��e���

���=�%�a��/���F���%�%� *�%��7�"�L�L��1�!&�1;�A�s�1C�A�H�H�W�-��	��


�	�$�	"�F�Q���B��B��!�e�T�]�+��q�6�Q�;��F�B����V�q�[�!"�J�B��B�%&�N�B��B��#�A�&�+�!�����"�s�E�9�5�6�����V�$����	��������1�5�2�r�J�B����2��.����b�!�5	"�87�z�B���l��\�!�!rCN)�__name__�
__module__�__qualname__�propertyrB�staticmethodrSrn�rCrAr5r5Ts>��
����(����:�B"��B"rCr5c��eZdZd�Zd�Zy)�RequestHooksMixinc��||jvrtd|�d���t|t�r|j|j	|�yt|d�r&|j|j
d�|D��yy)zProperly register a hook.z.Unsupported event specified, with event name "�"rFc3�BK�|]}t|t�s�|���y�w�N)rIr)�.0�hs  rA�	<genexpr>z2RequestHooksMixin.register_hook.<locals>.<genexpr>�s����$P�1�
�1�h�8O�Q�$P�s��N)�hooksr[rIrr<rL�extend�r?�event�hooks   rA�
register_hookzRequestHooksMixin.register_hook�ss����
�
�"��M�e�W�TU�V�W�W��d�H�%��J�J�u��$�$�T�*�
�T�:�
&��J�J�u��$�$�$P��$P�P�'rCc�`�	|j|j|�y#t$rYywxYw)ziDeregister a previously registered hook.
        Returns True if the hook existed, False if not.
        TF)r~�remover[r�s   rA�deregister_hookz!RequestHooksMixin.deregister_hook�s3��
	��J�J�u��$�$�T�*����	��	�s�!�	-�-N)rorprqr�r�rtrCrArvrv�s
��	Q�	rCrvc�8�eZdZdZ										dd�Zd�Zd�Zy)�Requesta{A user-created :class:`Request <Request>` object.

    Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server.

    :param method: HTTP method to use.
    :param url: URL to send.
    :param headers: dictionary of headers to send.
    :param files: dictionary of {filename: fileobject} files to multipart upload.
    :param data: the body to attach to the request. If a dictionary or
        list of tuples ``[(key, value)]`` is provided, form-encoding will
        take place.
    :param json: json for the body to attach to the request (if files or data is not specified).
    :param params: URL parameters to append to the URL. If a dictionary or
        list of tuples ``[(key, value)]`` is provided, form-encoding will
        take place.
    :param auth: Auth handler or (user, pass) tuple.
    :param cookies: dictionary or CookieJar of cookies to attach to this request.
    :param hooks: dictionary of callback hooks, for internal usage.

    Usage::

      >>> import requests
      >>> req = requests.Request('GET', 'https://httpbin.org/get')
      >>> req.prepare()
      <PreparedRequest [GET]>
    Nc�D�|�gn|}|�gn|}|�in|}|�in|}|	�in|	}	t�|_t|	j��D]\}}|j	||���||_||_||_||_||_	|
|_
||_||_||_
y)N)r�r�)r&r~r^�itemsr��methodr:rYrbrNr�params�auth�cookies)
r?r�r:rYrbrNr�r�r�r~rrPrRs
             rA�__init__zRequest.__init__s����\�r�t���m������"�W���~��6���m����"�_��
��5�;�;�=�)�	0�F�Q�����Q�Q��/�	0������������
���	���	������	���rCc�"�d|j�d�S)Nz
<Request [�]>�r��r?s rA�__repr__zRequest.__repr__%s���D�K�K�=��+�+rCc��t�}|j|j|j|j|j
|j|j|j|j|j|j��
|S)zXConstructs a :class:`PreparedRequest <PreparedRequest>` for transmission and returns it.)
r�r:rYrbrNrr�r�r�r~)�PreparedRequest�preparer�r:rYrbrNrr�r�r�r~�r?r@s  rAr�zRequest.prepare(sh�����	�	�	��;�;�����L�L��*�*��������;�;�����L�L��*�*�	�	
��rC�
NNNNNNNNNN)rorprq�__doc__r�r�r�rtrCrAr�r��s7���:����
��
���
�!�F,�rCr�c��eZdZdZd�Z										dd�Zd�Zd�Zd�Ze	d��Z
d	�Zd
�Zdd�Z
d�Zdd
�Zd�Zd�Zy)r�a)The fully mutable :class:`PreparedRequest <PreparedRequest>` object,
    containing the exact bytes that will be sent to the server.

    Instances are generated from a :class:`Request <Request>` object, and
    should not be instantiated manually; doing so may produce undesirable
    effects.

    Usage::

      >>> import requests
      >>> req = requests.Request('GET', 'https://httpbin.org/get')
      >>> r = req.prepare()
      >>> r
      <PreparedRequest [GET]>

      >>> s = requests.Session()
      >>> s.send(r)
      <Response [200]>
    c�v�d|_d|_d|_d|_d|_t�|_d|_yrz)r�r:rY�_cookiesrmr&r~�_body_positionr�s rAr�zPreparedRequest.__init__Os8�������������
���	�"�_��
�"��rCNc��|j|�|j||�|j|�|j|�|j	|||
�|j||�|j
|	�y)z6Prepares the entire request with the given parameters.N)�prepare_method�prepare_url�prepare_headers�prepare_cookies�prepare_body�prepare_auth�
prepare_hooks)r?r�r:rYrbrNr�r�r�r~rs           rAr�zPreparedRequest.prepare`sp��	
���F�#�����f�%����W�%����W�%����$��t�,����$��$�	
���5�!rCc�"�d|j�d�S)Nz<PreparedRequest [r�r�r�s rAr�zPreparedRequest.__repr__|s��#�D�K�K�=��3�3rCc�R�t�}|j|_|j|_|j�|jj	�nd|_t|j�|_|j|_|j|_|j|_	|Srz)
r�r�r:rY�copyrr�rmr~r�r�s  rAr�zPreparedRequest.copysx������;�;��������+/�<�<�+C�D�L�L�%�%�'���	�%�d�m�m�4��
�������*�*����.�.����rCc�|�||_|j�)t|jj��|_yy)zPrepares the given HTTP method.N)r�r
�upper)r?r�s  rAr�zPreparedRequest.prepare_method�s1������;�;�"�*�4�;�;�+<�+<�+>�?�D�K�#rCc��ddl}	|j|d��jd�}|S#|j$rt�wxYw)NrT)�uts46rG)�idnarMr\�	IDNAError�UnicodeError)�hostr�s  rA�_get_idna_encoded_hostz&PreparedRequest._get_idna_encoded_host�sI���	��;�;�t�4�;�0�7�7��@�D�����~�~�	���	�s	�"*�Ac
�2�t|t�r|jd�}nt|�}|j	�}d|vr'|j�j
d�s||_y	t|�\}}}}}}}	|std|�d|�d���|std|�d���t|�s	|j|�}n|j
d
�rtd	��|xsd}|r|dz
}||z
}|r|d|��z
}|sd
}t|ttf�rt!|�}|j#|�}|r|r|�d|��}n|}t%t'|||d||	g��}||_y#t$r}
t|
j��d}
~
wwxYw#t$rtd	��wxYw)zPrepares the given HTTP URL.�utf8�:�httpNzInvalid URL z0: No scheme supplied. Perhaps you meant https://r8z: No host suppliedzURL has an invalid label.)�*�.r9�@r7�&)rIrKr\rJ�lstrip�lower�
startswithr:rrr#�argsr$rr�r�r
rSr/r)
r?r:r��schemer�r��portr;r=�fragment�e�netloc�
enc_paramss
             rAr�zPreparedRequest.prepare_url�s����c�5�!��*�*�V�$�C��c�(�C��j�j�l��
�#�:�c�i�i�k�4�4�V�<��D�H��	&�>G��n�;�F�D�$��d�E�8����s�g�&-�-0�E��4��
�
��|�C�7�2D�E�F�F� ��%�
>��2�2�4�8���_�_�Z�
(��8�9�9�������c�M�F��$������$��j� �F���D��f�s�E�l�+�%�f�-�F��(�(��0�
��� �'��:�,�/��"���*�f�f�d�D�%��%R�S�T������_"�	&��a�f�f�%�%��	&��& �
>� �!<�=�=�
>�s$�*E�.F�	E>�'E9�9E>�Fc��t�|_|r>|j�D]*}t|�|\}}||jt	|�<�,yy)z Prepares the given HTTP headers.N)r(rYr�r)r
)r?rY�headerrW�values     rAr�zPreparedRequest.prepare_headers�sP��+�,����!�-�-�/�
=��%�f�-�$���e�7<����-�d�3�4�	
=�rCc
��d}d}|s=|�;d}	tj|d��}t	|t
�s|j
d�}tt|d�t	|ttttf�g�}|rw	t|�}|}t#|dd��	|j%�|_|rt-d	��|r t/|�|j0d
<||_yd|j0d<||_y|r|j3||�\}}n4|r2|j5|�}t	|t�st|d
�rd}nd}|j7|�|rd|j0vr||j0d<||_y#t$r}t||���d}~wwxYw#ttt f$rd}Y��&wxYw#t($rt+�|_Y�� wxYw)z"Prepares the given HTTP body data.Nzapplication/jsonF)�	allow_nan)�requestrGrF�tellz1Streamed bodies and files are mutually exclusive.�Content-Length�chunkedzTransfer-EncodingrEz!application/x-www-form-urlencodedzcontent-typezContent-Type)�complexjson�dumpsr[r"rIrKrM�allrLrr^r]rr1�	TypeError�AttributeErrorr�getattrr�r��OSError�object�NotImplementedErrorrrYrnrS�prepare_content_lengthrm)	r?rNrbrrmrZ�ve�	is_stream�lengths	         rAr�zPreparedRequest.prepare_body�s���������(�.�L�
9�"�(�(���?���d�E�*��{�{�7�+�����j�)��t�j�$��w�%G�H�H�
�
�	��
�"�4����D��t�V�T�*�6�3�*.�)�)�+�D�'��)�G����1<�V�1D����-�.�*��	�'5>����0�1�&��	�!�'+�'9�'9�%��'F�$��|���.�.�t�4�D�!�$�
�3�w�t�V�7L�'+��'J���'�'��-���t�|�|�!C�/;����^�,���	��w�
9�&�r�4�8�8��
9�� �~�/C�D�
���
���3�+1�(�D�'�3�s;�E7�=F�F2�7	F�
F
�
F�F/�.F/�2G�
Gc���|�'t|�}|rt|�|jd<yy|jdvr,|jj	d��d|jd<yyy)z>Prepare Content-Length header based on request method and bodyNr�)�GET�HEAD�0)r1rrYr��get)r?rmr�s   rAr�z&PreparedRequest.prepare_content_length=sn�����t�_�F��2=�V�1D����-�.��

�K�K��.���� � �!1�2�:�.1�D�L�L�)�*�	;�
/rCc�2�|�$t|j�}t|�r|nd}|rot|t�rt|�dk(rt
|�}||�}|jj|j�|j|j�yy)z"Prepares the given HTTP auth data.NrU)r*r:�anyrIr]r_r�__dict__�updater�rm)r?r�r:�url_auth�rs     rAr�zPreparedRequest.prepare_authMs����<�(����2�H�"�8�}�8�$�D���$��&�3�t�9��>�$�d�+���T�
�A�
�M�M� � ����,�
�'�'��	�	�2�rCc��t|tj�r||_nt	|�|_t|j|�}|�||jd<yy)aPrepares the given HTTP cookie data.

        This function eventually generates a ``Cookie`` header from the
        given cookies using cookielib. Due to cookielib's design, the header
        will not be regenerated if it already exists, meaning this function
        can only be called once for the life of the
        :class:`PreparedRequest <PreparedRequest>` object. Any subsequent calls
        to ``prepare_cookies`` will have no actual effect, unless the "Cookie"
        header is removed beforehand.
        N�Cookie)rIr�	CookieJarr�rrrY)r?r��
cookie_headers   rAr�zPreparedRequest.prepare_cookiescsP���g�y�2�2�3�#�D�M�/��8�D�M�)�$�-�-��>�
��$�%2�D�L�L��"�%rCc�H�|xsg}|D]}|j|||��y)zPrepares the given hooks.N)r�)r?r~r�s   rAr�zPreparedRequest.prepare_hooksws0��
�����	4�E����u�e�E�l�3�	4rCr�rz)r9)rorprqr�r�r�r�r�r�rsr�r�r�r�r�r�r�r�rtrCrAr�r�:s|���(#�&����
��
���
�"�84�	�@�����H�T	=�L�\1� 3�,3�(4rCr�c��eZdZdZgd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
ed��Zed
��Zed��Zed��Zed��Zdd�Zeddfd�Zed��Zed��Zd�Zed��Zd�Zd�Zy)�ResponsezhThe :class:`Response <Response>` object, which contains a
    server's response to an HTTP request.
    )
�_content�status_coderYr:�history�encoding�reasonr��elapsedr�c��d|_d|_d|_d|_t	�|_d|_d|_d|_g|_	d|_
ti�|_tjd�|_d|_y)NFr)r��_content_consumed�_nextr�r(rY�rawr:r�r�r�rr��datetime�	timedeltar�r�r�s rAr�zResponse.__init__�s�����
�!&�����
� ���
+�,���
��������
�
������+�2�.��� �)�)�!�,�����rCc��|Srzrtr�s rA�	__enter__zResponse.__enter__�s���rCc�$�|j�yrz)�close)r?r�s  rA�__exit__zResponse.__exit__�s���
�
�rCc	��|js|j|jD�cic]}|t||d���c}Scc}wrz)r��content�	__attrs__r�)r?�attrs  rA�__getstate__zResponse.__getstate__�s:���%�%��L�L�<@�N�N�K�D��g�d�D�$�/�/�K�K��Ks�?c��|j�D]\}}t|||��t|dd�t|dd�y)Nr�Tr�)r��setattr)r?�staterWr�s    rA�__setstate__zResponse.__setstate__�sB�� �;�;�=�	'�K�D�%��D�$��&�	'�	��)�4�0���e�T�"rCc�"�d|j�d�S)Nz<Response [r�)r�r�s rAr�zResponse.__repr__�s���T�-�-�.�b�1�1rCc��|jS�akReturns True if :attr:`status_code` is less than 400.

        This attribute checks if the status code of the response is between
        400 and 600 to see if there was a client error or a server error. If
        the status code, is between 200 and 400, this will return True. This
        is **not** a check to see if the response code is ``200 OK``.
        ��okr�s rA�__bool__zResponse.__bool__��
���w�w�rCc��|jSr	r
r�s rA�__nonzero__zResponse.__nonzero__�r
rCc�$�|jd�S)z,Allows you to use a response as an iterator.�)�iter_contentr�s rArFzResponse.__iter__�s��� � ��%�%rCc�D�	|j�y#t$rYywxYw)axReturns True if :attr:`status_code` is less than 400, False if not.

        This attribute checks if the status code of the response is between
        400 and 600 to see if there was a client error or a server error. If
        the status code is between 200 and 400, this will return True. This
        is **not** a check to see if the response code is ``200 OK``.
        FT)�raise_for_statusr!r�s rArzResponse.ok�s,��	��!�!�#����	��	�s��	�c�F�d|jvxr|jtvS)z�True if this Response is a well-formed HTTP redirect that could have
        been processed automatically (by :meth:`Session.resolve_redirects`).
        �location)rYr��REDIRECT_STATIr�s rA�is_redirectzResponse.is_redirects#��
�T�\�\�)�P�d�.>�.>�.�.P�PrCc�z�d|jvxr,|jtjtjfvS)z@True if this Response one of the permanent versions of redirect.r)rYr�r'�moved_permanently�permanent_redirectr�s rA�is_permanent_redirectzResponse.is_permanent_redirect	s?���T�\�\�)�
�d�.>�.>��#�#��$�$�C
�/
�	
rCc��|jS)zTReturns a PreparedRequest for the next request in a redirect chain, if there is one.)r�r�s rA�nextz
Response.nexts���z�z�rCc�F�tj|j�dS)zOThe apparent encoding, provided by the charset_normalizer or chardet libraries.r�)r�detectr�r�s rA�apparent_encodingzResponse.apparent_encodings���~�~�d�l�l�+�J�7�7rCFc�@�����fd�}�jr$t�jt�r
t	����(t�t
�st
dt���d���t�j��}|�}�jr|n|}|rt|��}|S)a�Iterates over the response data.  When stream=True is set on the
        request, this avoids reading the content at once into memory for
        large responses.  The chunk size is the number of bytes it should
        read into memory.  This is not necessarily the length of each item
        returned as decoding can take place.

        chunk_size must be of type int or None. A value of None will
        function differently depending on the value of `stream`.
        stream=True will read data as it arrives in whatever size the
        chunks are received. If stream=False, data is returned as
        a single chunk.

        If decode_unicode is True, content will be decoded using the best
        available encoding based on the response.
        c3��K�t�jd�r.	�jj�d��Ed{���d�_y	�jj��}|s		d�_y|���+7�8#t$r}t	|��d}~wt
$r}t
|��d}~wt$r}t|��d}~wt$r}t|��d}~wwxYw�w)N�streamT)�decode_content)
rLr�r$rrrr rrr�RequestsSSLErrorrEr�)r��chunk�
chunk_sizer?s  ��rA�generatez'Response.iter_content.<locals>.generate,s�������t�x�x��*�	.�#�x�x���z�$��O�O�O�"&*�D�"�
� �H�H�M�M�*�5�E� ��&*�D�"� �K�	�P��$�2�.�q�1�1��"�2�.�q�1�1��'�-�)�!�,�,���.�*�1�-�-��.�s\�C� A6�A4�A6�4C�4A6�6	C�?B
�
C�B!�!C�-B8�8C�C�C�Cz+chunk_size must be an int, it is instead a r�)
r�rIr��boolr%�intr��typer-r0)r?r(�decode_unicoder)�
reused_chunks�
stream_chunks�chunkss``     rArzResponse.iter_contents����"	*�.�!�!�j�����&E�%�'�'�
�
#�J�z�3�,G��=�d�:�>N�=O�q�Q��
�$�D�M�M�:�>�
� �
�
�"&�"8�"8��m���3�F�D�A�F��
rCNc#�K�d}|j||��D]a}|�||z}|r|j|�}n|j�}|r&|dr!|r|dd|dk(r|j�}nd}|Ed{����c|�|��yy7��w)z�Iterates over the response data, one line at a time.  When
        stream=True is set on the request, this avoids reading the
        content at once into memory for large responses.

        .. note:: This method is not reentrant safe.
        N)r(r-���)r�split�
splitlines�pop)r?r(r-�	delimiter�pendingr'�liness       rA�
iter_lineszResponse.iter_linesUs��������&�&�!�.�'�
�	�E��"��%�������I�.���(�(�*����r��u��r��2��%��)�1K��)�)�+�������#	�&���M��
�s�A3B�5B�6Bc��|jdurg|jrtd��|jdk(s|j�d|_n-dj|j
t��xsd|_d|_|jS)z"Content of the response, in bytes.Fz2The content for this response was already consumedrNrCT)r�r��RuntimeErrorr�r�r>r�CONTENT_CHUNK_SIZEr�s rAr�zResponse.contentwsy���=�=�E�!��%�%�"�#W�X�X����1�$����(8� $��
� #����):�):�;M�)N� O� V�SV��
�!%����}�}�rCc��d}|j}|jsy|j�|j}	t|j|d��}|S#tt
f$rt|jd��}Y|SwxYw)a�Content of the response, in unicode.

        If Response.encoding is None, encoding will be guessed using
        ``charset_normalizer`` or ``chardet``.

        The encoding of the response content is determined based solely on HTTP
        headers, following RFC 2616 to the letter. If you can take advantage of
        non-HTTP knowledge to make a better guess at the encoding, you should
        set ``r.encoding`` appropriately before accessing this property.
        Nr9�replace)�errors)r�r�r!rJ�LookupErrorr�)r?r�r�s   rA�textz
Response.text�s~�����=�=���|�|���=�=� ��-�-�H�		:��$�,�,���C�G�����Y�'�	:��$�,�,�y�9�G���	:�s�A�&A9�8A9c�6�|jsk|jr_t|j�dkDrGt|j�}|�0	t	j
|jj
|�fi|��S	t	j
|jfi|��S#t$rY�,t$r0}t|j|j|j��d}~wwxYw#t$r0}t|j|j|j��d}~wwxYw)z�Returns the json-encoded content of a response, if any.

        :param \*\*kwargs: Optional arguments that ``json.loads`` takes.
        :raises requests.exceptions.JSONDecodeError: If the response body does not
            contain valid json.
        rVN)r�r�r_r,r��loadsr\�UnicodeDecodeErrorr�RequestsJSONDecodeError�msg�doc�posrA)r?�kwargsr�r�s    rArz
Response.json�s����}�}����#�d�l�l�2C�a�2G�
&�d�l�l�3�H��#�	G�&�,�,�T�\�\�-@�-@��-J�U�f�U�U�	?��$�$�T�Y�Y�9�&�9�9��*��
�&�G�1�!�%�%�������F�F��G��
�	?�*�!�%�%�������>�>��	?�s6�	.B�9C�	C�$C�,+C�C�	D�(+D�Dc��|jjd�}i}|r;t|�}|D]+}|jd�xs|jd�}|||<�-|S)z8Returns the parsed header links of the response, if any.�link�relr:)rYr�r.)r?r��resolved_links�linksrK�keys      rArNzResponse.links�se�����!�!�&�)�����&�v�.�E��
+���h�h�u�o�8����%���&*��s�#�
+��rCc���d}t|jt�r	|jjd�}n|j}d|j
cxkrdkr"nn|j
�d|�d|j��}n6d|j
cxkrdkr!nn|j
�d	|�d|j��}|r
t||�
��y#t$r|jjd�}Y��wxYw)z+Raises :class:`HTTPError`, if one occurred.r9rGz
iso-8859-1i�i�z Client Error: z
 for url: iXz Server Error: )�responseN)rIr�rKr\rDr�r:r!)r?�http_error_msgr�s   rArzResponse.raise_for_status�s������d�k�k�5�)�

:����+�+�G�4���[�[�F��$�"�"�(�S�(��#�#�$�O�F�8�:�d�h�h�Z�P�
��D�$�$�
*�s�
*��#�#�$�O�F�8�:�d�h�h�Z�P�
���N�T�:�:���&�
:����+�+�L�9��
:�s�C�$C*�)C*c��|js|jj�t|jdd�}|�|�yy)z�Releases the connection back to the pool. Once this method has been
        called the underlying ``raw`` object must not be accessed again.

        *Note: Should not normally need to be called explicitly.*
        �release_connN)r�r�r�r�)r?rTs  rAr�zResponse.close�s=���%�%��H�H�N�N���t�x�x���>���#��N�$rC)rF)rorprqr�rr�r�r�rrr�rrrFrrrrrrr!r�ITER_CHUNK_SIZEr9r�rArrNrr�rtrCrAr�r��s����I�-�^��L�#�2���&������Q��Q��
��
������8��8�8�v)��$� �D����$�#��#�J?�B���� ;�:rCr�)Rr�r��encodings.idna�	encodings�ior�urllib3.exceptionsrrrrr�urllib3.fieldsr	�urllib3.filepostr
�urllib3.utilr�_internal_utilsr
rr�r�compatrrrrrrrrr�rrrr�rrr�
exceptionsrrr r!r"r#rEr$r&r%r~r&�status_codesr'�
structuresr(�utilsr)r*r+r,r-r.r/r0r1r2�moved�found�other�temporary_redirectrr�DEFAULT_REDIRECT_LIMITr<rUr5rvr�r�r�rtrCrA�<module>rhs����
�#���(�6�"�?�����(�3�3�M�M���C�%�4�+� ��+���� 
�K�K�	�K�K�	�K�K�	���	�����������w"�w"�t��0Q��Q�hD4�*�,=�D4�N
I�IrC

Zerion Mini Shell 1.0