
    q"hw                        S SK Jr  S SKrS SKrS SKrS SKrS SKrS SKJr  S SK	J
r  S SK	Jr  SrSSKJr  SSKJr  SS	KJrJr  SS
KJrJrJrJrJrJrJrJrJrJ r   SSK!J"r"  SSK#J$r$J%r%  \RL                  " \'5      r( " S S\)5      r* " S S\)5      r+ " S S\)5      r,\b   " S S\)5      r- " S S\)5      r.S r/ " S S\R`                  5      r1g)    )absolute_importN)contextmanager)error)timeout   )util)HTTPHeaderDict)BaseSSLErrorHTTPException)
BodyNotHttplibCompatibleDecodeError	HTTPErrorIncompleteReadInvalidChunkLengthInvalidHeaderProtocolErrorReadTimeoutErrorResponseNotChunkedSSLError)six)is_fp_closedis_response_to_headc                   &    \ rS rSrS rS rS rSrg)DeflateDecoder#   c                 T    SU l         SU l        [        R                  " 5       U l        g )NT    )
_first_try_datazlibdecompressobj_objselfs    N/var/www/html/env/lib/python3.13/site-packages/pip/_vendor/urllib3/response.py__init__DeflateDecoder.__init__$   s     
&&(	r   c                 .    [        U R                  U5      $ Ngetattrr"   r$   names     r%   __getattr__DeflateDecoder.__getattr__)       tyy$''r   c                    U(       d  U$ U R                   (       d  U R                  R                  U5      $ U =R                  U-  sl         U R                  R                  U5      nU(       a  SU l         S U l        U$ ! [        R
                   ac    SU l         [        R                  " [        R                  * 5      U l         U R                  U R                  5      S U l        s $ ! S U l        f = ff = f)NF)r   r"   
decompressr   r    r   r!   	MAX_WBITS)r$   datadecompresseds      r%   r2   DeflateDecoder.decompress,   s    K99''--

d
	"99//5L"'!
zz 	"#DO**DNN?;DI"tzz2!
T
	"s%   1A> >AC5C(C5(	C11C5)r   r   r"   N__name__
__module____qualname____firstlineno__r&   r.   r2   __static_attributes__ r   r%   r   r   #   s    )
("r   r   c                        \ rS rSrSrSrSrSrg)GzipDecoderStateC   r   r      r=   N)r8   r9   r:   r;   FIRST_MEMBEROTHER_MEMBERSSWALLOW_DATAr<   r=   r   r%   r?   r?   C   s    LMLr   r?   c                   &    \ rS rSrS rS rS rSrg)GzipDecoderJ   c                     [         R                  " S[         R                  -   5      U l        [        R
                  U l        g N   )r    r!   r3   r"   r?   rB   _stater#   s    r%   r&   GzipDecoder.__init__K   s*    &&rDNN':;	&33r   c                 .    [        U R                  U5      $ r)   r*   r,   s     r%   r.   GzipDecoder.__getattr__O   r0   r   c                 @   [        5       nU R                  [        R                  :X  d  U(       d  [	        U5      $   X R
                  R                  U5      -  nU R
                  R                  nU(       d  [	        U5      $ [        R                  U l        [        R                  " S[        R                  -   5      U l        M  ! [        R                   aD    U R                  n[        R                  U l        U[        R                  :X  a  [	        U5      s $ e f = frI   )	bytearrayrK   r?   rD   bytesr"   r2   r    r   rC   unused_datar!   r3   )r$   r4   retprevious_states       r%   r2   GzipDecoder.decompressR   s    k;;*777t:	yy++D11 99((DSz!*88DK**2+>?DI  :: !%.;;!%5%C%CC :%s   C ADD)r"   rK   Nr7   r=   r   r%   rF   rF   J   s    4(@r   rF   c                        \ rS rSrS rS rSrg)BrotliDecoderj   c                     [         R                  5       U l        [        U R                  S5      (       a  U R                  R                  U l        g U R                  R
                  U l        g )Nr2   )brotliDecompressorr"   hasattrr2   processr#   s    r%   r&   BrotliDecoder.__init__n   sE    ++-DItyy,//"&))"6"6"&))"3"3r   c                 n    [        U R                  S5      (       a  U R                  R                  5       $ g)Nflushr   )r\   r"   r`   r#   s    r%   r`   BrotliDecoder.flushu   s'    tyy'**yy((r   )r"   r2   N)r8   r9   r:   r;   r&   r`   r<   r=   r   r%   rW   rW   j   s    	4	r   rW   c                   *    \ rS rSrSrS rS rS rSrg)MultiDecoder{   z
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                     UR                  S5       Vs/ s H  n[        UR                  5       5      PM     snU l        g s  snf )N,)split_get_decoderstrip	_decoders)r$   modesms      r%   r&   MultiDecoder.__init__   s1    ;@;;s;KL;Ka,qwwy1;KLLs   #A c                 <    U R                   S   R                  5       $ Nr   )rj   r`   r#   s    r%   r`   MultiDecoder.flush   s    ~~a &&((r   c                 `    [        U R                  5       H  nUR                  U5      nM     U$ r)   )reversedrj   r2   )r$   r4   ds      r%   r2   MultiDecoder.decompress   s(    $..)A<<%D *r   )rj   N)	r8   r9   r:   r;   __doc__r&   r`   r2   r<   r=   r   r%   rc   rc   {   s    M)r   rc   c                     SU ;   a  [        U 5      $ U S:X  a
  [        5       $ [        b  U S:X  a
  [        5       $ [	        5       $ )Nrf   gzipbr)rc   rF   rZ   rW   r   )modes    r%   rh   rh      s@    
d{D!!v~}ddlr   c                      \ rS rSrSrSS/r\b  \S/-  r/ SQr                 S)S jrS	 r	S
 r
S r\S 5       r\S 5       rS rS rS rS r\\R*                  4r\b  \\R*                  4-  rS rS r\S 5       rS rS*S jrS+S jr\S 5       rS r S,S jr!S r"S r#\S 5       r$S r%S r&S  r'S! r(S" r)S# r*S$ r+S-S% jr,S& r-S' r.S(r/g).HTTPResponse   a  
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.
rw   deflateNrx   )i-  i.  i/  i3  i4  c                    [        U[        5      (       a  X l        O[        U5      U l        X0l        X@l        XPl        X`l        Xl        Xl        Xl	        UU l
        S U l        S U l        S U l        Xl        SU l        Xl        UU l        U(       a+  [        U[$        R&                  [(        45      (       a  Xl        Xl        Xl        [/        US5      (       a  Xl        SU l        S U l        U R                  R5                  SS5      R7                  5       nS UR9                  S5       5       nSU;   a  S	U l        U R;                  U5      U l        U(       a'  U R                  (       d  U R?                  US
9U l        g g g )Nr   readFztransfer-encoding c              3   @   #    U  H  oR                  5       v   M     g 7fr)   )ri   ).0encs     r%   	<genexpr>(HTTPResponse.__init__.<locals>.<genexpr>   s     >,=SYY[[,=s   rf   chunkedTdecode_content) 
isinstancer	   headersstatusversionreasonstrictr   retriesenforce_content_length
auto_close_decoder_body_fp_original_response_fp_bytes_readmsg_request_urlr   string_typesrQ   _pool_connectionr\   r   
chunk_leftgetlowerrg   _init_lengthlength_remainingr   )r$   bodyr   r   r   r   r   preload_contentr   original_responsepool
connectionr   r   r   request_methodrequest_urlr   tr_enc	encodingss                       r%   r&   HTTPResponse.__init__   sE   * g~.."L)'2DL,&<#$
"3'Jtc&6&6%>??J
%4  H !!"5r:@@B>FLL,=>		!DL !% 1 1. A 4::.ADJ $.?r   c                 n    U R                   U R                  ;   a  U R                  R                  S5      $ g)z
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)r   REDIRECT_STATUSESr   r   r#   s    r%   get_redirect_location"HTTPResponse.get_redirect_location  s.     ;;$000<<##J//r   c                     U R                   (       a  U R                  (       d  g U R                   R                  U R                  5        S U l        g r)   )r   r   	_put_connr#   s    r%   release_connHTTPResponse.release_conn  s4    zz!1!1

T--.r   c                 f     U R                  5         g! [        [        [        [        4 a     gf = f)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)r   r   SocketErrorr
   r   r#   s    r%   
drain_connHTTPResponse.drain_conn  s+    	IIK;mD 		s    00c                 ~    U R                   (       a  U R                   $ U R                  (       a  U R                  SS9$ g )NT)cache_content)r   r   r   r#   s    r%   r4   HTTPResponse.data%  s2     ::::88994900 r   c                     U R                   $ r)   )r   r#   s    r%   r   HTTPResponse.connection.  s    r   c                 ,    [        U R                  5      $ r)   )r   r   r#   s    r%   isclosedHTTPResponse.isclosed2  s    DHH%%r   c                     U R                   $ )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%   tellHTTPResponse.tell5  s     """r   c                    U R                   R                  S5      nUb  U R                  (       a  [        R	                  S5        g [        UR                  S5       Vs/ s H  n[        U5      PM     sn5      n[        U5      S:  a  [        SU-  5      eUR                  5       nUS:  a  Sn [        U R                  5      nUS;   d  S	Us=::  a  S
:  d  O  US:X  a  SnU$ s  snf ! [         a    Sn NHf = f! [         a    Sn NDf = f)z=
Set initial length value for Response content if available.
zcontent-lengthNzReceived 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.rf   r   z8Content-Length contained multiple unmatching values (%s)r   )   i0  d      HEAD)r   r   r   logwarningsetrg   intlenr   pop
ValueErrorr   )r$   r   lengthvallengthsr   s         r%   r   HTTPResponse._init_length=  s    !!"23||  " 6<<3DE3DCs3x3DEFw<!#'139:  ! A:!F	%F
 Z3&#63#6.F:RF1 F    	F	s6   C* C%44C* 1C< %C* *C98C9<D
Dc                    U R                   R                  SS5      R                  5       nU R                  c  XR                  ;   a  [        U5      U l        gSU;   aq  UR                  S5       Vs/ s H3  nUR                  5       U R                  ;   d  M#  UR                  5       PM5     nn[        U5      (       a  [        U5      U l        ggggs  snf )z-
Set-up the _decoder attribute if necessary.
content-encodingr   Nrf   )	r   r   r   r   CONTENT_DECODERSrh   rg   ri   r   )r$   content_encodinger   s       r%   _init_decoderHTTPResponse._init_decoderq  s      <<++,>CIIK== #8#88 ,-= >(( .33C88wwyD$9$99 AGGI8  
 y>>$01A$BDM " ) !s   1"CCc                 F   U(       d  U$  U R                   (       a  U R                   R                  U5      nU(       a  XR                  5       -  nU$ ! U R                   a>  nU R                  R	                  SS5      R                  5       n[        SU-  U5      eSnAff = f)z>
Decode the data passed in and potentially flush the decoder.
r   r   zEReceived response with content-encoding: %s, but failed to decode it.N)r   r2   DECODER_ERROR_CLASSESr   r   r   r   _flush_decoder)r$   r4   r   flush_decoderr   r   s         r%   _decodeHTTPResponse._decode  s     K		}}}}//5 ''))D )) 	#||//0BBGMMO')9: 	s   ,A B "9BB c                     U R                   (       a7  U R                   R                  S5      nXR                   R                  5       -   $ g)zS
Flushes the decoder. Should only be called if the decoder is actually
being used.
r   )r   r2   r`   )r$   bufs     r%   r   HTTPResponse._flush_decoder  s8    
 ==--**3/C,,...r   c              #     #    Sn  Sv   SnU(       dV  U R                  (       a  U R                  R                  5         U R                  (       a  U R                  R                  5         U R                  (       a1  U R                  R                  5       (       a  U R                  5         ggg! [          a    [        U R                  SS5      e[         a6  nS[	        U5      ;  a  [        U5      e[        U R                  SS5      eSnAf[        [        4 a  n[        SU-  U5      eSnAff = f! U(       dV  U R                  (       a  U R                  R                  5         U R                  (       a  U R                  R                  5         U R                  (       a1  U R                  R                  5       (       a  U R                  5         f f f = f7f)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.
FNzRead timed out.zread operation timed outzConnection broken: %rT)SocketTimeoutr   r   r
   strr   r   r   r   r   closer   r   r   )r$   
clean_exitr   s      r%   _error_catcherHTTPResponse._error_catcher  s     
+	$D* J  **++113
 ##$$**, &&4+B+B+K+K+M+M!!# ,N&M ! L 'tzz49JKK L-SV;"1+%&tzz49JKK!;/ D#$;a$?CCD  **++113
 ##$$**, &&4+B+B+K+K+M+M!!# ,N&sF   GB- D2 B G-*D/1DD/D**D//D2 2B!GGc                    U R                   (       d   eSnU(       a  X:  d!  U R                  (       a  U R                  U:  a  [        R                  (       d  [        R                  (       d  [
        R                  S:  a  [        R                  " 5       nSnUb  US:w  ag  Ub  [        X5      nX-  nOUnU R                   R                  U5      nU(       d   UR                  5       $ UR                  U5        AUc  M_  US:w  a  Mg  UR                  5       $ Ub  U R                   R                  U5      $ U R                   R                  5       $ )a  
Read a response with the thought that reading the number of bytes
larger than can fit in a 32-bit int at a time via SSL in some
known cases leads to an overflow error that has to be prevented
if `amt` or `self.length_remaining` indicate that a problem may
happen.

The known cases:
  * 3.8 <= CPython < 3.9.7 because of a bug
    https://github.com/urllib3/urllib3/issues/2513#issuecomment-1152559900.
  * urllib3 injected with pyOpenSSL-backed SSL-support.
  * CPython < 3.10 only when `amt` does not fit 32-bit int.
i)   
   i   r   )r   r   r   IS_SECURETRANSPORTIS_PYOPENSSLsysversion_infoioBytesIOminr   writegetvalue)r$   amt	c_int_maxbuffermax_chunk_amt	chunk_amtr4   s          r%   _fp_readHTTPResponse._fp_read  s    xxx	 ))d.C.Ci.O++""c&6&6&@ZZ\F $M+? #C 7I$C -Ixx}}Y/ ??$$ T" + ??$$ *-488==%MdhhmmoMr   c                    U R                  5         Uc  U R                  nU R                  c  gSn[        U R                  SS5      nU R	                  5          U(       d  U R                  U5      OSnUc  SnOlSnUS:w  ad  U(       d]  U R                  R                  5         SnU R                  (       a0  U R                  S;  a   [        U R                  U R                  5      eSSS5        W(       ah  U =R                  [        U5      -  sl
        U R                  b  U =R                  [        U5      -  sl        U R                  XbU5      nU(       a  X`l        U$ ! , (       d  f       N= f)a  
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closedr   Tr   )r   N)r   r   r   r+   r   r   r   r   r   r   r   r   r   r   )r$   r   r   r   r   	fp_closedr4   s          r%   r   HTTPResponse.read  s.   * 	!!00N88DHHh6	  "-64==%CD{ $ %1HT HHNN$$(M22t7L7L U 8 -T-@-@$BWBWXX7 #: 3t9,$$0%%T2%<<mDD!
O #"s   BE
E+c              #   0  #    U R                   (       a0  U R                  5       (       a  U R                  XS9 H  nUv   M	     g[        U R                  5      (       d7  U R                  XS9nU(       a  Uv   [        U R                  5      (       d  M6  gg7f)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.
r   )r   r   N)r   supports_chunked_readsread_chunkedr   r   r   )r$   r   r   liner4   s        r%   streamHTTPResponse.streamY  st       <<D7799))#)M
 N #488,,yySyHJ	 #488,,s   BBBc                 H   UR                   n[        U[        5      (       dE  [        R                  (       a  [        R
                  " U5      nO[        UR                  5       5      n[        USS5      nU " SUUUR                  UR                  UR                  UUS.UD6nU$ )z
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``.
r   r   )r   r   r   r   r   r   r   r=   )r   r   r	   r   PY2from_httplibitemsr+   r   r   r   )ResponseClsrresponse_kwr   r   resps         r%   r	  HTTPResponse.from_httplibs  s     %%'>22ww(55g>(9 Ha( 	
88II88	
 	
 r   c                 N    [         R                  " S[        SS9  U R                  $ )Nz|HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.rA   category
stacklevel)warningswarnDeprecationWarningr   r#   s    r%   
getheadersHTTPResponse.getheaders  s&    O'		
 ||r   c                 l    [         R                  " S[        SS9  U R                  R	                  X5      $ )NzHTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).rA   r  )r  r  r  r   r   )r$   r-   defaults      r%   	getheaderHTTPResponse.getheader  s1    V'		
 ||..r   c                     U R                   $ r)   )r   r#   s    r%   infoHTTPResponse.info  s    ||r   c                    U R                   (       d  U R                  R                  5         U R                  (       a  U R                  R                  5         U R                  (       d   [
        R                  R                  U 5        g g r)   )r   r   r   r   r   r   IOBaser#   s    r%   r   HTTPResponse.close  sN    {{HHNN""$IIOOD! r   c                 `   U R                   (       d)  [        R                  R                  R	                  U 5      $ U R
                  c  g[        U R
                  S5      (       a  U R
                  R                  5       $ [        U R
                  S5      (       a  U R
                  R                  $ g)NTr   r   )r   r   r!  r   __get__r   r\   r   r#   s    r%   r   HTTPResponse.closed  sw    99##++D11XXTXXz**88$$&&TXXx((88??"r   c                     U R                   c  [        S5      e[        U R                   S5      (       a  U R                   R                  5       $ [        S5      e)Nz-HTTPResponse has no file to get a fileno fromfilenozOThe file-like object this HTTPResponse is wrapped around has no file descriptor)r   IOErrorr\   r'  r#   s    r%   r'  HTTPResponse.fileno  sL    88IJJTXXx((88??$$0 r   c                     U R                   bS  [        U R                   S5      (       a7  [        U R                   SS5      (       d  U R                   R                  5       $ g g g )Nr`   r   F)r   r\   r+   r`   r#   s    r%   r`   HTTPResponse.flush  sP    HH '**DHHh6688>>## 7 + !r   c                     g)NTr=   r#   s    r%   readableHTTPResponse.readable  s    r   c                     U R                  [        U5      5      n[        U5      S:X  a  gX!S [        U5      & [        U5      $ ro   )r   r   )r$   btemps      r%   readintoHTTPResponse.readinto  s9    yyQ t9>!kD	Nt9r   c                 .    [        U R                  S5      $ )z
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)r\   r   r#   s    r%   r  #HTTPResponse.supports_chunked_reads  s     txx&&r   c                    U R                   b  g U R                  R                  R                  5       nUR	                  SS5      S   n [        US5      U l         g ! [         a    U R                  5         [        X5      ef = f)N   ;r   r   rJ   )	r   r   r5  readlinerg   r   r   r   r   )r$   r  s     r%   _update_chunk_length!HTTPResponse._update_chunk_length  sq     ??&xx{{##%zz$"1%	1!$mDO 	1JJL$T00	1s   	A &Bc                 X   S nUcK  U R                   R                  U R                  5      nUnU R                   R                  S5        S U l        U$ XR                  :  a3  U R                   R                  U5      nU R                  U-
  U l        UnU$ XR                  :X  aA  U R                   R                  U5      nU R                   R                  S5        S U l        UnU$ U R                   R                  U R                  5      nU R                   R                  S5        S U l        U$ )NrA   )r   
_safe_readr   )r$   r   returned_chunkchunkvalues        r%   _handle_chunkHTTPResponse._handle_chunk  s   ;HH''8E"NHH""DO  ??"HH'',E"oo3DO"N  OO#HH'',EHH""DO"N
  "XX00ANHH""DOr   c              #   ~  #    U R                  5         U R                  (       d  [        S5      eU R                  5       (       d  [	        S5      eU R                  5          U R                  (       a>  [        U R                  5      (       a$  U R                  R                  5          SSS5        gU R                  R                  c
   SSS5        g U R                  5         U R                  S:X  a  O.U R                  U5      nU R                  X2SS9nU(       a  Uv   MO  U(       a  U R                  5       nU(       a  Uv    U R                  R                  R!                  5       nU(       d  O	US:X  a  OM5  U R                  (       a  U R                  R                  5         SSS5        g! , (       d  f       g= f7f)av  
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.Nr   F)r   r   s   
)r   r   r   r  r   r   r   r   r   r   r5  r:  r   rA  r   r   r9  )r$   r   r   r?  decodedr  s         r%   r  HTTPResponse.read_chunked  s~     	||$B  **,,*P 
   "&&+>t?V?V+W+W''--/	 #" xx{{" #" ))+??a'**3/,, '  !M   --/!M xx{{++-7?  &&''--/S #""s8   AF=AF,&	F=/F,	F=CF,#	F=,
F:6F=c                     U R                   bG  [        U R                   R                  5      (       a#  U R                   R                  S   R                  $ U R                  $ )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.
)r   r   historyredirect_locationr   r#   s    r%   geturlHTTPResponse.geturlU  sI     <<#DLL,@,@(A(A<<''+===$$$r   c              #   L  #    / nU R                  SS9 Hp  nSU;   aV  UR                  S5      nSR                  U5      US   -   S-   v   USS  H
  nUS-   v   M     US   (       a  US   /nM[  / nM_  UR                  U5        Mr     U(       a  SR                  U5      v   g g 7f)NTr      
r   r   r   rG  )r  rg   joinappend)r$   r   r?  xs       r%   __iter__HTTPResponse.__iter__`  s     [[[5E~E*hhv&q1E99qAe)O %9#Bi[FFe$ 6 ((6"" s   B"B$)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   Nr   r   Nr   TTNNNNNFNNT)NNF)i   Nr)   )NN)0r8   r9   r:   r;   ru   r   rZ   r   r&   r   r   r   propertyr4   r   r   r   r   r   r(  r    r   r   r   r   r   r   r   r   r  classmethodr	  r  r  r  r   r   r'  r`   r-  r2  r  r:  rA  r  rJ  rQ  r<   r=   r   r%   r{   r{      s   @ 	*TF"1 $%ABF 	 1 1    &#2hC& %djj1&,,0,	 5$ 5$n.N`FP4  @/" 
 
	$'1,D0L	%#r   r{   )2
__future__r   r   loggingr   r  r    
contextlibr   socketr   r   r   r   rZ   r   r   _collectionsr	   r   r
   r   
exceptionsr   r   r   r   r   r   r   r   r   r   packagesr   util.responser   r   	getLoggerr8   r   objectr   r?   rF   rW   rc   rh   r!  r{   r=   r   r%   <module>r_     s    & 	  
   % ' +	  ( 3    <!"V "@v @& @< 
 "6 *
R#299 R#r   