Your IP : 3.15.144.162


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/urllib3/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/urllib3/__pycache__/response.cpython-311.pyc

�

^�Dg+n���ddlmZddlZddlZddlZddlmZddlmZ	ddlm
Z	ddlZn
#e
$rdZYnwxYwddlmZddlmZmZdd	lmZmZmZmZmZmZmZmZmZmZdd
lmZddl m!Z!m"Z"ej#e$��Z%Gd�d
e&��Z'Gd�de&��Z(Gd�de&��Z)e�Gd�de&��Z*Gd�de&��Z+d�Z,Gd�dej-��Z.dS)�)�absolute_importN)�contextmanager)�error)�timeout�)�HTTPHeaderDict)�BaseSSLError�
HTTPException)
�BodyNotHttplibCompatible�DecodeError�	HTTPError�IncompleteRead�InvalidChunkLength�
InvalidHeader�
ProtocolError�ReadTimeoutError�ResponseNotChunked�SSLError)�six)�is_fp_closed�is_response_to_headc� �eZdZd�Zd�Zd�ZdS)�DeflateDecoderc�R�d|_d|_tj��|_dS)NT�)�
_first_try�_data�zlib�
decompressobj�_obj��selfs �G/opt/imunify360/venv/lib64/python3.11/site-packages/urllib3/response.py�__init__zDeflateDecoder.__init__$s$�������
��&�(�(��	�	�	rc�,�t|j|��S�N��getattrr �r"�names  r#�__getattr__zDeflateDecoder.__getattr__)����t�y�$�'�'�'rc��|s|S|js|j�|��S|xj|z
c_	|j�|��}|rd|_d|_|S#tj$r\d|_t	jtj��|_	|�|j��d|_cYS#d|_wxYwwxYw)NF)rr �
decompressrrrr�	MAX_WBITS)r"�data�decompresseds   r#r.zDeflateDecoder.decompress,s����	��K���	.��9�'�'��-�-�-��
�
�d��
�
�	"��9�/�/��5�5�L��
"�"'���!��
�����z�	"�	"�	"�#�D�O��*�D�N�?�;�;�D�I�
"����t�z�2�2�!��
�
�
�
��T��
�!�!�!�!�
	"���s#�+A#�#:C�C�7C�	C
�
CN��__name__�
__module__�__qualname__r$r+r.�rr#rr#sA������)�)�)�
(�(�(�"�"�"�"�"rrc��eZdZdZdZdZdS)�GzipDecoderStaterr�N)r3r4r5�FIRST_MEMBER�
OTHER_MEMBERS�SWALLOW_DATAr6rr#r8r8Cs�������L��M��L�L�Lrr8c� �eZdZd�Zd�Zd�ZdS)�GzipDecoderc�t�tjdtjz��|_tj|_dS)N�)rrr/r r8r:�_stater!s r#r$zGzipDecoder.__init__Ks)���&�r�D�N�':�;�;��	�&�3����rc�,�t|j|��Sr&r'r)s  r#r+zGzipDecoder.__getattr__Or,rc���t��}|jtjks|st	|��S		||j�|��z
}nM#tj$r;|j}tj|_|tj	krt	|��cYS�wxYw|jj
}|st	|��Stj	|_tjdtjz��|_��)NTr@)
�	bytearrayrAr8r<�bytesr r.rrr;�unused_datarr/)r"r0�ret�previous_states    r#r.zGzipDecoder.decompressRs����k�k���;�*�7�7�7�t�7���:�:��	@�	
��t�y�+�+�D�1�1�1�����:�
�
�
�!%���.�;���!�%5�%C�C�C� ��:�:�%�%�%��
�����9�(�D��
"��S�z�z�!�*�8�D�K��*�2���+>�?�?�D�I�	@s�A�AB�BNr2r6rr#r>r>JsF������4�4�4�(�(�(�@�@�@�@�@rr>c��eZdZd�Zd�ZdS)�
BrotliDecoderc��tj��|_t|jd��r|jj|_dS|jj|_dS)Nr.)�brotli�Decompressorr �hasattrr.�processr!s r#r$zBrotliDecoder.__init__nsF���+�-�-�D�I��t�y�,�/�/�
4�"&�)�"6�����"&�)�"3����rc�b�t|jd��r|j���SdS)N�flushr)rNr rQr!s r#rQzBrotliDecoder.flushus-���t�y�'�*�*�
)��y���(�(�(��3rN)r3r4r5r$rQr6rr#rJrJjs2������	4�	4�	4�	�	�	�	�	rrJc�$�eZdZdZd�Zd�Zd�ZdS)�MultiDecodera
    From RFC7231:
        If one or more encodings have been applied to a representation, the
        sender that applied the encodings MUST generate a Content-Encoding
        header field that lists the content codings in the order in which
        they were applied.
    c�N�d�|�d��D��|_dS)Nc�P�g|]#}t|�������$Sr6)�_get_decoder�strip)�.0�ms  r#�
<listcomp>z)MultiDecoder.__init__.<locals>.<listcomp>�s(��L�L�L�a�,�q�w�w�y�y�1�1�L�L�Lr�,)�split�	_decoders)r"�modess  r#r$zMultiDecoder.__init__�s'��L�L�5�;�;�s�;K�;K�L�L�L����rc�@�|jd���S�Nr)r]rQr!s r#rQzMultiDecoder.flush�s���~�a� �&�&�(�(�(rc�^�t|j��D]}|�|��}�|Sr&)�reversedr]r.)r"r0�ds   r#r.zMultiDecoder.decompress�s3���$�.�)�)�	&�	&�A��<�<��%�%�D�D��rN)r3r4r5�__doc__r$rQr.r6rr#rSrS{sN��������M�M�M�)�)�)�����rrSc��d|vrt|��S|dkrt��St�|dkrt��St	��S)Nr[�gzip�br)rSr>rLrJr)�modes r#rVrV�sP��
�d�{�{��D�!�!�!��v�~�~��}�}��
��d�d�l�l��������rc��eZdZdZddgZe�edgz
Zgd�Z																	d+d�Zd�Zd
�Z	d�Z
ed���Zed���Z
d�Zd�Zd�Zd�ZeejfZe�eejfz
Zd�Zd�Zed���Zd,d�Zd-d�Zed���Zd�Zd.d�Zd�Z d�Z!ed ���Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d/d(�Z*d)�Z+d*�Z,dS)0�HTTPResponsea�
    HTTP Response container.

    Backwards-compatible with :class:`http.client.HTTPResponse` but the response ``body`` is
    loaded and decoded on-demand when the ``data`` property is accessed.  This
    class is also compatible with the Python standard library's :mod:`io`
    module, and can hence be treated as a readable object in the context of that
    framework.

    Extra parameters for behaviour not present in :class:`http.client.HTTPResponse`:

    :param preload_content:
        If True, the response's body will be preloaded during construction.

    :param decode_content:
        If True, will attempt to decode the body based on the
        'content-encoding' header.

    :param original_response:
        When this HTTPResponse wrapper is generated from an :class:`http.client.HTTPResponse`
        object, it's convenient to include the original for debug purposes. It's
        otherwise unused.

    :param retries:
        The retries contains the last :class:`~urllib3.util.retry.Retry` that
        was used during the request.

    :param enforce_content_length:
        Enforce content length checking. Body returned by server must match
        value of Content-Length header, if present. Otherwise, raise error.
    rf�deflateNrg)i-i.i/i3i4�rTFc�&�t|t��r||_nt|��|_||_||_||_||_||_|
|_||_	||_
d|_d|_d|_
|	|_d|_||_||_|r(t|t$jt(f��r||_|
|_||_t/|d��r||_
d|_d|_|j�dd�����}d�|�d��D��}d|vrd	|_|�|��|_|r$|js|�|�
��|_dSdSdS)Nr�readFztransfer-encodingrlc3�>K�|]}|���V��dSr&)rW)rX�encs  r#�	<genexpr>z(HTTPResponse.__init__.<locals>.<genexpr>�s*����>�>�S�S�Y�Y�[�[�>�>�>�>�>�>rr[�chunkedT��decode_content) �
isinstancer�headers�status�version�reason�strictrt�retries�enforce_content_length�
auto_close�_decoder�_body�_fp�_original_response�_fp_bytes_read�msg�_request_urlr�string_typesrE�_pool�_connectionrNrr�
chunk_left�get�lowerr\�_init_length�length_remainingrn)r"�bodyrvrwrxryrz�preload_contentrt�original_response�pool�
connectionr�r{r|�request_method�request_urlr}�tr_enc�	encodingss                    r#r$zHTTPResponse.__init__�s���*�g�~�.�.�	3�"�D�L�L�)�'�2�2�D�L�������������,������&<��#�$�����
���
����"3���������'����	�J�t�c�&6��%>�?�?�	��D�J���
�%����4�� � �	��D�H���������!�!�"5�r�:�:�@�@�B�B��>�>�F�L�L��,=�,=�>�>�>�	��	�!�!��D�L�!%� 1� 1�.� A� A����	B�4�:�	B����.��A�A�D�J�J�J�	B�	B�	B�	Brc�V�|j|jvr|j�d��SdS)a
        Should we redirect and where to?

        :returns: Truthy redirect location string if we got a redirect status
            code and valid location. ``None`` if redirect status and no
            location. ``False`` if not a redirect status code.
        �locationF)rw�REDIRECT_STATUSESrvr�r!s r#�get_redirect_locationz"HTTPResponse.get_redirect_locations/���;�$�0�0�0��<�#�#�J�/�/�/��urc�r�|jr|jsdS|j�|j��d|_dSr&)r�r��	_put_connr!s r#�release_connzHTTPResponse.release_connsB���z�	��!1�	��F��
���T�-�.�.�.�����rc�x�	|���dS#ttttf$rYdSwxYw)z�
        Read and discard any remaining HTTP response data in the response connection.

        Unread data in the HTTPResponse connection blocks the connection from being released back to the pool.
        N)rnr
�SocketErrorr	r
r!s r#�
drain_connzHTTPResponse.drain_connsC��	��I�I�K�K�K�K�K���;��m�D�	�	�	��D�D�	���s��9�9c�\�|jr|jS|jr|�d���SdS)NT)�
cache_content)rr�rnr!s r#r0zHTTPResponse.data%s>���:�	��:���8�	1��9�9�4�9�0�0�0�	1�	1rc��|jSr&)r�r!s r#r�zHTTPResponse.connection.s����rc�*�t|j��Sr&)rr�r!s r#�isclosedzHTTPResponse.isclosed2s���D�H�%�%�%rc��|jS)z�
        Obtain the number of bytes pulled over the wire so far. May differ from
        the amount of content returned by :meth:``urllib3.response.HTTPResponse.read``
        if bytes are encoded on the wire (e.g, compressed).
        )r�r!s r#�tellzHTTPResponse.tell5s
���"�"rc��|j�d��}|��|jrt�d��dS	td�|�d��D����}t|��dkrtd|z���|�	��}|dkrd}n#t$rd}YnwxYw	t|j��}n#t$rd}YnwxYw|d	vsd
|cxkrdksn|dkrd}|S)
zM
        Set initial length value for Response content if available.
        zcontent-lengthNz�Received response with both Content-Length and Transfer-Encoding set. This is expressly forbidden by RFC 7230 sec 3.3.2. Ignoring Content-Length and attempting to process response as Transfer-Encoding: chunked.c�,�g|]}t|����Sr6)�int)rX�vals  r#rZz-HTTPResponse._init_length.<locals>.<listcomp>Ws��E�E�E�C�s�3�x�x�E�E�Err[rz8Content-Length contained multiple unmatching values (%s)r)��i0�d���HEAD)
rvr�rr�log�warning�setr\�lenr�pop�
ValueErrorr�rw)r"r��length�lengthsrws     r#r�zHTTPResponse._init_length=sl����!�!�"2�3�3�����|�
���������t�
"��E�E�6�<�<��3D�3D�E�E�E�F�F���w�<�<�!�#�#�'�1�39�:����!�������A�:�:�!�F���	�
�
�
�����
����	����%�%�F�F���	�	�	��F�F�F�	�����Z���3�&�#6�#6�#6�#6�3�#6�#6�#6�#6�.�F�:R�:R��F��
s%�A%B/�/B>�=B>�C�C&�%C&c�J���j�dd�����}�j�i|�jvrt|���_dSd|vrH�fd�|�d��D��}t|��rt|���_dSdSdSdS)z=
        Set-up the _decoder attribute if necessary.
        �content-encodingrlNr[c�n��g|]1}|����jv�|�����2Sr6)rW�CONTENT_DECODERS)rX�er"s  �r#rZz.HTTPResponse._init_decoder.<locals>.<listcomp>|sA��������w�w�y�y�D�$9�9�9��G�G�I�I�9�9�9r)rvr�r�r~r�rVr\r�)r"�content_encodingr�s`  r#�
_init_decoderzHTTPResponse._init_decoderqs���� �<�+�+�,>��C�C�I�I�K�K���=� ��4�#8�8�8� ,�-=� >� >��
�
�
��(�(�(�����-�3�3�C�8�8����	�
�y�>�>�C�$0�1A�$B�$B�D�M�M�M�!� �)�(�C�Crc�*�|s|S	|jr|j�|��}nR#|j$rE}|j�dd�����}t
d|z|���d}~wwxYw|r||���z
}|S)zN
        Decode the data passed in and potentially flush the decoder.
        r�rlzEReceived response with content-encoding: %s, but failed to decode it.N)r~r.�DECODER_ERROR_CLASSESrvr�r�r�_flush_decoder)r"r0rt�
flush_decoderr�r�s      r#�_decodezHTTPResponse._decode�s����	��K�		��}�
6��}�/�/��5�5�����)�	�	�	�#�|�/�/�0B�B�G�G�M�M�O�O���'�)9�:����
�����	�����	*��D�'�'�)�)�)�D��s�!(�
A7�AA2�2A7c��|jr6|j�d��}||j���zSdS)zk
        Flushes the decoder. Should only be called if the decoder is actually
        being used.
        r)r~r.rQ)r"�bufs  r#r�zHTTPResponse._flush_decoder�sA��
�=�	/��-�*�*�3�/�/�C����,�,�.�.�.�.��src#�*K�d}		dV�n�#t$rt|jdd���t$r;}dt	|��vrt|���t|jdd���d}~wttf$r}td|z|���d}~wwxYwd}|s@|j	r|j	�
��|jr|j�
��|j	r/|j	���r|�
��dSdSdS#|s@|j	r|j	�
��|jr|j�
��|j	r.|j	���r|�
��wwwxYw)z�
        Catch low-level python exceptions, instead re-raising urllib3
        variants, so that low-level exceptions are not leaked in the
        high-level api.

        On exit, release the connection back to the pool.
        FNzRead timed out.zread operation timed outzConnection broken: %rT)�
SocketTimeoutrr�r	�strrr
r�rr��closer�r�r�)r"�
clean_exitr�s   r#�_error_catcherzHTTPResponse._error_catcher�s�����
�+	$�
D������� �
L�
L�
L�'�t�z�4�9J�K�K�K��
L�
L�
L�-�S��V�V�;�;�"�1�+�+�%�&�t�z�4�9J�K�K�K�����!�;�/�
D�
D�
D�#�$;�a�$?��C�C�C�����
D�����J��
-��*�4��+�1�1�3�3�3�
�#�-��$�*�*�,�,�,��&�
$�4�+B�+K�+K�+M�+M�
$��!�!�#�#�#�#�#�
$�
$�
$�
$���
-��*�4��+�1�1�3�3�3�
�#�-��$�*�*�,�,�,��&�
$�4�+B�+K�+K�+M�+M�
$��!�!�#�#�#�#�
$�
$���s2��D�)B�6A+�+B�?B�B�D�A:Fc��|���|�|j}|j�dSd}t|jdd��}|���5|� |s|j���nd}d}nmd}|s|j�|��nd}|dkrG|sE|j���d}|jr#|jdvrt|j
|j���ddd��n#1swxYwY|ra|xj
t|��z
c_
|j�|xjt|��zc_|�|||��}|r||_
|S)aT
        Similar to :meth:`http.client.HTTPResponse.read`, but with two additional
        parameters: ``decode_content`` and ``cache_content``.

        :param amt:
            How much of the content to read. If specified, caching is skipped
            because it doesn't make sense to cache partial content as the full
            response.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.

        :param cache_content:
            If True, will save the returned data such that the same result is
            returned despite of the state of the underlying file object. This
            is useful if you want the ``.data`` property to continue working
            after having ``.read()`` the file object. (Overridden if ``amt`` is
            set.)
        NF�closedrTr)rN)r�rtr�r(r�rnr�r|r�rr�r�r�r)r"�amtrtr�r��	fp_closedr0s       r#rnzHTTPResponse.read�s���*	
�������!�!�0�N��8���F��
��D�H�h��6�6�	�
�
 �
 �
"�
"�	Y�	Y��{�.7�@�t�x�}�}����S�� $�
�
� %�
�1:�C�t�x�}�}�S�)�)�)����1�H�H�T�H��H�N�N�$�$�$�$(�M��2�	Y�t�7L�U�8�8�-�T�-@�$�BW�X�X�X�;	Y�	Y�	Y�	Y�	Y�	Y�	Y�	Y�	Y�	Y�	Y����	Y�	Y�	Y�	Y�>�	"����3�t�9�9�,����$�0��%�%��T���2�%�%��<�<��n�m�D�D�D��
"�!��
��s�BC/�/C3�6C3�c#�K�|jr4|���r |�||���D]}|V��dSt|j��s3|�||���}|r|V�t|j���1dSdS)a_
        A generator wrapper for the read() method. A call will block until
        ``amt`` bytes have been read from the connection or until the
        connection is closed.

        :param amt:
            How much of the content to read. The generator will return up to
            much data per iteration, but may return less. This is particularly
            likely when using compressed data. However, the empty string will
            never be returned.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.
        rs)r�rtN)rr�supports_chunked_reads�read_chunkedrr�rn)r"r�rt�liner0s     r#�streamzHTTPResponse.stream+s����� �<�	�D�7�7�9�9�	��)�)�#�n�)�M�M�
�
���
�
�
�
�
�
�#�4�8�,�,�
��y�y�S��y�H�H�����J�J�J�	#�4�8�,�,�
�
�
�
�
rc�"�|j}t|t��sBtjrtj|��}n!t|�����}t|dd��}|d|||j|j	|j
||d�|��}|S)a
        Given an :class:`http.client.HTTPResponse` instance ``r``, return a
        corresponding :class:`urllib3.response.HTTPResponse` object.

        Remaining parameters are passed to the HTTPResponse constructor, along
        with ``original_response=r``.
        rzr)r�rvrwrxryrzr�r6)r�rurr�PY2�from_httplib�itemsr(rwrxry)�ResponseCls�r�response_kwrvrz�resps      r#r�zHTTPResponse.from_httplibEs����%���'�>�2�2�	:��w�
:�(�5�g�>�>���(������9�9����H�a�(�(���{�	
����8��I��8���	
�	
��	
�	
���rc��|jSr&�rvr!s r#�
getheaderszHTTPResponse.getheadersf�
���|�rc�8�|j�||��Sr&)rvr�)r"r*�defaults   r#�	getheaderzHTTPResponse.getheaderis���|����g�.�.�.rc��|jSr&r�r!s r#�infozHTTPResponse.infomr�rc���|js|j���|jr|j���|js!t
j�|��dSdSr&)r�r�r�r�r}�io�IOBaser!s r#r�zHTTPResponse.closeqsl���{�	��H�N�N������	%���"�"�$�$�$���	"��I�O�O�D�!�!�!�!�!�	"�	"rc��|js$tjj�|��S|j�dSt
|jd��r|j���St
|jd��r|jjSdS)NTr�r�)r}r�r�r��__get__r�rNr�r!s r#r�zHTTPResponse.closed{s}����		��9�#�+�+�D�1�1�1�
�X�
��4�
�T�X�z�
*�
*�	��8�$�$�&�&�&�
�T�X�x�
(�
(�	��8�?�"��4rc��|j�td���t|jd��r|j���Std���)Nz-HTTPResponse has no file to get a fileno from�filenozOThe file-like object this HTTPResponse is wrapped around has no file descriptor)r��IOErrorrNr�r!s r#r�zHTTPResponse.fileno�sV���8���I�J�J�J�
�T�X�x�
(�
(�	��8�?�?�$�$�$��0���
rc��|j�Dt|jd��r1t|jdd��s|j���SdSdSdS)NrQr�F)r�rNr(rQr!s r#rQzHTTPResponse.flush�s\���H� ����'�*�*�
!��D�H�h��6�6�
!��8�>�>�#�#�#�	
!� � � � � rc��dS)NTr6r!s r#�readablezHTTPResponse.readable�s���trc��|�t|����}t|��dkrdS||dt|���<t|��Sr`)rnr�)r"�b�temps   r#�readintozHTTPResponse.readinto�sL���y�y��Q��� � ���t�9�9��>�>��1�!�A�k��D�	�	�k�N��t�9�9�rc�,�t|jd��S)a
        Checks if the underlying file-like object looks like a
        :class:`http.client.HTTPResponse` object. We do this by testing for
        the fp attribute. If it is present we assume it returns raw chunks as
        processed by read_chunked().
        �fp)rNr�r!s r#r�z#HTTPResponse.supports_chunked_reads�s���t�x��&�&�&rc��|j�dS|jj���}|�dd��d}	t|d��|_dS#t$r%|���t||���wxYw)N�;rrr@)	r�r�r��readliner\r�r�r�r)r"r�s  r#�_update_chunk_lengthz!HTTPResponse._update_chunk_length�s����?�&��F��x�{�#�#�%�%���z�z�$��"�"�1�%��	1�!�$��m�m�D�O�O�O���	1�	1�	1��J�J�L�L�L�$�T�4�0�0�0�	1���s�A�/Bc��d}|�C|j�|j��}|}|j�d��d|_n�||jkr,|j�|��}|j|z
|_|}n�||jkr>|j�|��}|j�d��d|_|}n@|j�|j��}|j�d��d|_|S)Nr9)r��
_safe_readr�)r"r��returned_chunk�chunk�values     r#�
_handle_chunkzHTTPResponse._handle_chunk�s������;��H�'�'���8�8�E�"�N��H����"�"�"�"�D�O�O�
�4�?�
"�
"��H�'�'��,�,�E�"�o��3�D�O�"�N�N�
�D�O�
#�
#��H�'�'��,�,�E��H����"�"�"�"�D�O�"�N�N�!�X�0�0���A�A�N��H����"�"�"�"�D�O��rc#�,K�|���|jstd���|���st	d���|���5|jr;t|j��r'|j���	ddd��dS|j	j
�	ddd��dS	|���|jdkrn4|�
|��}|�||d���}|r|V��T|r|���}|r|V�	|j	j
���}|sn|dkrn�)|jr|j���ddd��dS#1swxYwYdS)	a�
        Similar to :meth:`HTTPResponse.read`, but with an additional
        parameter: ``decode_content``.

        :param amt:
            How much of the content to read. If specified, caching is skipped
            because it doesn't make sense to cache partial content as the full
            response.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.
        zHResponse is not chunked. Header 'transfer-encoding: chunked' is missing.zkBody should be http.client.HTTPResponse like. It should have have an fp attribute which returns raw chunks.NTrF)rtr�s
)r�rrrr�rr�r�rr�r�r�r�r�rr�r�r�)r"r�rtr��decodedr�s      r#r�zHTTPResponse.read_chunked�so����	
�������|�	�$�B���
��*�*�,�,�	�*�P���
�
�
 �
 �
"�
"�)	0�)	0��&�
�+>�t�?V�+W�+W�
��'�-�-�/�/�/��	)	0�)	0�)	0�)	0�)	0�)	0�)	0�)	0��x�{�"��)	0�)	0�)	0�)	0�)	0�)	0�)	0�)	0�	
"��)�)�+�+�+��?�a�'�'���*�*�3�/�/���,�,��.��'�����"�!�M�M�M�	
"��
"��-�-�/�/���"�!�M�M�M�
��x�{�+�+�-�-������7�?�?��

��&�
0��'�-�-�/�/�/�S)	0�)	0�)	0�)	0�)	0�)	0�)	0�)	0�)	0�)	0�)	0�)	0����)	0�)	0�)	0�)	0�)	0�)	0s�$6F	�'
F	�B;F	�	F
�F
c�~�|j�0t|jj��r|jjdjS|jS)z�
        Returns the URL that was the source of this response.
        If the request that generated this response redirected, this method
        will return the final redirect location.
        N���)r{r��history�redirect_locationr�r!s r#�geturlzHTTPResponse.geturls:���<�#��D�L�,@�(A�(A�#��<�'��+�=�=��$�$rc#�jK�g}|�d���D]|}d|vra|�d��}d�|��|dzdzV�|dd�D]	}|dzV��
|dr
|dg}�dg}�g|�|���}|rd�|��V�dSdS)NTrs�
rrrr)r�r\�join�append)r"�bufferr��xs    r#�__iter__zHTTPResponse.__iter__&s��������[�[��[�5�5�	%�	%�E���~�~����E�*�*���h�h�v�&�&��q��1�E�9�9�9�9��q��t��$�$�A��e�)�O�O�O�O���9� �#�B�i�[�F�F��F�F��
�
�e�$�$�$�$��	#��(�(�6�"�"�"�"�"�"�"�	#�	#r)rlNrrNrTTNNNNNFNNT)NNF)r�Nr&)NN)-r3r4r5rdr�rLr�r$r�r�r��propertyr0r�r�r�r�r�r�rrr�r�r�rr�rnr��classmethodr�r�r�r�r�r�r�rQr�r�r�r�rr�rrr6rr#rjrj�s���������@�	�*��
���T�F�"��1�1�1�����������
����$����%AB�AB�AB�AB�F��� � � �	�	�	��1�1��X�1�� � ��X� �&�&�&�#�#�#�2�2�2�hC�C�C�&%�d�j�1��
���&�,��0�����,	�	�	��5$�5$��^�5$�nH�H�H�H�T����4����[��@���/�/�/�/����"�"�"��
�
��X�
�	�	�	�$�$�$�������'�'�'�1�1�1����,D0�D0�D0�D0�L	%�	%�	%�#�#�#�#�#rrj)/�
__future__rr��loggingr�
contextlibr�socketrr�rr�rL�ImportError�_collectionsrr�r	r
�
exceptionsrrr
rrrrrrr�packagesr�
util.responserr�	getLoggerr3r��objectrr8r>rJrSrVr�rjr6rr#�<module>rs���&�&�&�&�&�&�	�	�	�	���������%�%�%�%�%�%�'�'�'�'�'�'�+�+�+�+�+�+���M�M�M�M������
�F�F�F�����)�(�(�(�(�(�3�3�3�3�3�3�3�3�������������������������������<�<�<�<�<�<�<�<��g���!�!��"�"�"�"�"�V�"�"�"�@�����v����@�@�@�@�@�&�@�@�@�<
�����������"�����6����*
�
�
�X
#�X
#�X
#�X
#�X
#�2�9�X
#�X
#�X
#�X
#�X
#s�+�5�5

?>