S9i TddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m Z ddlmZddlmZddlmZ ddlZ ddlZeeeej<dej>jAxZ!Z!e!dkrdZd d l$m%Z%d d l&m'Z'd d l(m)Z)d d l*m+Z+m,Z,m-Z-d dl.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9d dl:m;Z;mZ>e j~r ddl@mAZAd dlBmCZCejeEZFGddZGGddeGZHGddZIGddeGZJe GddeGZKe GddeGZLGdd eGZMd(d!ZNGd"d#ZOGd$d%ejZQGd&d'eQZy#e$rddlZY>wxYw#e$rdZYLwxYw#e"ee#f$rdZYwxYw))) annotationsN)contextmanager) HTTPMessage) HTTPResponse)timeoutz^([0-9]+)\.([0-9]+))r)util) _TYPE_BODY)HTTPHeaderDict) BaseSSLErrorHTTPConnection HTTPException) BodyNotHttplibCompatible DecodeErrorDependencyWarning HTTPErrorIncompleteReadInvalidChunkLength InvalidHeader ProtocolErrorReadTimeoutErrorResponseNotChunkedSSLError) is_fp_closedis_response_to_head)Retry)Literal)HTTPConnectionPoolc0eZdZdddZeddZddZy) ContentDecoderctNNotImplementedErrorselfdata max_lengths 2/usr/lib/python3/dist-packages/urllib3/response.py decompresszContentDecoder.decompressF !##ctr#r$r's r*has_unconsumed_tailz"ContentDecoder.has_unconsumed_tailI !##r-ctr#r$r/s r*flushzContentDecoder.flushMr,r-Nr(bytesr)intreturnr7r9boolr9r7)__name__ __module__ __qualname__r+propertyr0r3r-r*r!r!Es $$$$r-r!c8eZdZddZdddZed dZd dZy) DeflateDecoderc`d|_d|_d|_tj|_y)NTr-) _first_try_first_try_data _unfed_datazlib decompressobj_objr/s r*__init__zDeflateDecoder.__init__Rs)"&&( r-c|j|z}d|_|s|jjs|S|}|dkrd}n |dk(r||_y|js4|jj |jj|z|S|xj |z c_ |jj ||}|rd|_d|_|S#t j$rdd|_t jt j |_ |j |j |d|_cYS#d|_wxYwwxYw)Nr-rr)F) rGrJunconsumed_tailrEr+rFrHerrorrI MAX_WBITS)r'r(r)original_max_length decompresseds r*r+zDeflateDecoder.decompressXs?$&DII55K(  "J A % $D 99'' ))D0Z(  $ +99///LL"''*$ zz +#DO**DNN?;DI +((5H'(+$s$ +s%.C AED7-E7 EEct|jxs.t|jjxr |j Sr#)r;rGrJrNrEr/s r*r0z"DeflateDecoder.has_unconsumed_tails8D$$% ** + CDOO0C r-c6|jjSr#rJr3r/s r*r3zDeflateDecoder.flushyy  r-Nr9Noner4r6r:r<r=r>r?rKr+r@r0r3rAr-r*rCrCQs&) (+T  !r-rCceZdZdZdZdZy)GzipDecoderStaterr N)r=r>r? FIRST_MEMBER OTHER_MEMBERS SWALLOW_DATArAr-r*r[r[sLMLr-r[c8eZdZddZdddZed dZd dZy) GzipDecoderctjdtjz|_tj |_d|_y)Nr-)rHrIrPrJr[r]_state_unconsumed_tailr/s r*rKzGzipDecoder.__init__s2&&rDNN':; &33 #r-c t}|jtjk(r t |S|dk(r|xj |z c_y|j |z}|s!|j jr t |S ||j j|t|t|z dz }|j jxs|j jx|_}|dkDrt||k\r t |S|s t |S|j jr@tj|_tj dtj"z|_#tj$rJ|j}tj|_d|_|tjk(r t |cYSwxYw)Nrr-rMrc) bytearrayrdr[r_r7rerJeofr+maxlenrHrOr^rN unused_datarIrP)r'r(r)retprevious_states r*r+zGzipDecoder.decompresssk ;;*77 7:  ?  ! !T ) !$$t+ :  tyy++Sc#h)>%B, ))BTYY-B-B D !DA~#c(j"8SzSz!yy}}.<<  ..rDNN/BC 7 :: !%.;; (+%!%5%C%CC :% s6E00AG  G c,t|jSr#)r;rer/s r*r0zGzipDecoder.has_unconsumed_tailsD))**r-c6|jjSr#rUr/s r*r3zGzipDecoder.flushrVr-NrWr4r6r:r<rYrAr-r*raras&$ 0d++!r-racBeZdZddZdd dZdd dZed dZd dZy) BrotliDecoderctj|_t|jdr"t |d|jj yt |d|jj y)Nr+ _decompress)brotli DecompressorrJhasattrsetattrr+processr/s r*rKzBrotliDecoder.__init__sL++-DItyy,/mTYY-A-ABmTYY->->?r-ctr#r$)r'r(output_buffer_limits r*rszBrotliDecoder._decompresss %' 'r-c |dkDr|j||S|j|S#t$r|j|cYSwxYw)Nr)rz)rs TypeErrorr&s r*r+zBrotliDecoder.decompresssW .>++Dj+QQ++D11 .''-- .s++AAcX |jj S#t$rYywxYw)NF)rJcan_accept_more_dataAttributeErrorr/s r*r0z!BrotliDecoder.has_unconsumed_tails/ 9999;;;!  s  ))cdt|jdr|jjSy)Nr3r-)rvrJr3r/s r*r3zBrotliDecoder.flushs$tyy'*yy((r-NrWr4)r(r7rzr8r9r7r6r:r<) r=r>r?rKrsr+r@r0r3rAr-r*rqrqs+ @ ( .      r-rqc8eZdZddZdddZed dZd dZy) ZstdDecodercRtjj|_yr#)zstdZstdDecompressorrIrJr/s r*rKzZstdDecoder.__init__s--/==?DIr-cn|s |jsy|jjr@|jj|z}t j j |_|jj||}t|}|g}|jjr|jjr|dks||kr|jj}|jjst j |_|jj||dkDr||z nd}t|x}r|j|||z }n|jjrn8|jjr"|jjr |dkr||krdj|S)Nr-rMrr5) r0rJrhrkrrrIr+rj needs_inputappendjoin)r'r(r)partlength data_partsrk part_lengths r*r+zZstdDecoder.decompresssc 8 8yy}}yy,,t3 113AAC 99'''DDYFJ II))!^v ':"ii33 yy,, $ 5 5 7DIyy++8BQ V 3B,#&d)+;+%%d+k)FYY** II))!^v ':88J' 'r-c|jjxs|jj xst|jjSr#)rJrrhr;rkr/s r*r0zZstdDecoder.has_unconsumed_tail's> -->?4 %%D r-c||jj}|jjs td|S)NzZstandard data is incomplete)rJr3rhr)r'rls r*r3zZstdDecoder.flush-s.))//#C99==!"@AAJr-NrWr4r6r:r<rYrAr-r*rrs' @ (D      r-rc@eZdZdZdZddZd dZd d dZed dZ y) 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$|jdDcgc]}|j}}t||jkDr$t dt|d|j|Dcgc] }t |c}|_ycc}wcc}w)N,z)Too many content encodings in the chain: z > )splitstriprjmax_decode_linksr _get_decoder _decoders)r'modesm encodingses r*rKzMultiDecoder.__init__As(- C(891QWWY9 9 y>D11 1;y>"#d&;&;%<> 4==a,q/= : >s B-B c<|jdjSNr)rr3r/s r*r3zMultiDecoder.flushJs~~a &&((r-cB|dkr-t|jD]}|j|}|St} d}t|jD]&}|j||t |z }|s%d}(||z }|rt ||k\r t |Sd}c)NrTFrMr-)reversedrr+rgrjr7)r'r(r)drlany_datas r*r+zMultiDecoder.decompressMs ?dnn- *||D) *KkHdnn- $||DZ#c(5J|K#H $ 4KCs3x:5Sz!Dr-c:td|jDS)Nc34K|]}|jywr#)r0).0rs r* z3MultiDecoder.has_unconsumed_tail..isAQ1((As)anyrr/s r*r0z MultiDecoder.has_unconsumed_tailgsA$..AAAr-N)rstrr9rXr<r4r6r:) r=r>r?__doc__rrKr3r+r@r0rAr-r*rr4s4>)4BBr-rcd|vr t|S|dk(r tSt|dk(r tSt|dk(r t St S)Nrgzipbrr)rrartrqrrrC)modes r*rrlsT d{D!! v~} ddl DFN}  r-c0eZdZdZddZddZd dZd dZy) BytesQueueBuffera Memory-efficient bytes buffer To return decoded data in read() and still follow the BufferedIOBase API, we need a buffer to always return the correct amount of bytes. This buffer should be filled using calls to put() Our maximum memory usage is determined by the sum of the size of: * self.buffer, which contains the full data * the largest chunk that we will copy in get() The worst case scenario is a single chunk, in which case we'll make a full copy of the data inside get(). cDtj|_d|_yr) collectionsdequebuffer_sizer/s r*rKzBytesQueueBuffer.__init__s+6+<+<+>  r-c|jSr#)rr/s r*__len__zBytesQueueBuffer.__len__s zzr-cv|jj||xjt|z c_yr#)rrrrjr'r(s r*putzBytesQueueBuffer.puts& 4  c$i r-c2|dk(ry|js td|dkr tdt|jd|k(rLt |jdt r/|xj |zc_|jjSd}tj}||kr||z }|jj}t|}||kr\|d|||d}}|j||jj||xj |zc_ |jS|j||xj |zc_||z }|js |jS||kr|jS)Nrr-zbuffer is emptyzn should be > 0) r RuntimeError ValueErrorrj isinstancer7rpopleftioBytesIOwrite appendleftgetvalue) r'nfetchedrl remainingchunk chunk_length left_chunk right_chunks r*getzBytesQueueBuffer.getsb 601 1 U./ / t{{1~ ! # 4;;q>5(I JJ!OJ;;&&( (jjlkG IKK'')Eu:L<'*/ *;U9:=NK  *% &&{3 i' ||~ %  l* | #G;;||~%k$||~r-NrWr9r8)r(r7r9rX)rr8r9r7)r=r>r?rrKrrrrAr-r*rr|s   r-rc:eZdZUddgZeedgz Zeedgz ZgdZeejfZ de d<ee ejfz Z ee ejfz Z ddd  d!d Z d"d Zed#d Zd$d Zed%dZej&d&dZed'dZed(dZej&d)dZ d* d+dZ d, d-dZ d. d+dZd/dZd/dZd/dZd/dZ d0 d1dZd#dZd2dZd3dZ d0d4dZ!d3dZ"d%d Z#y)5BaseHTTPResponserdeflateNrr)i-i.i/i3i4ztuple[type[Exception], ...]DECODER_ERROR_CLASSES)headersretriesclt|tr||_nt||_||_||_||_||_d|_||_||_ d|_ |jjddj}d|jdD} d| vrd|_ d|_y)NFztransfer-encodingc3<K|]}|jywr#)r)rencs r*rz,BaseHTTPResponse.__init__..s>SSYY[>srchunkedT)rr rstatusversionreasondecode_content_has_decoded_content _request_urlrrrlowerr_decoder) r'rrrrr request_urlrtr_encrs r*rKzBaseHTTPResponse.__init__s g~ ."DL)'2DL   ,$)!(3  !!"5r:@@B>FLL,=>  !DL/3 r-cj|j|jvr|jjdSy)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)rREDIRECT_STATUSESrrr/s r*get_redirect_locationz&BaseHTTPResponse.get_redirect_locations. ;;$00 0<<##J/ /r-ctr#r$r/s r*r(zBaseHTTPResponse.datar1r-cb|jjd}tj|S)a Parses the body of the HTTP response as JSON. To use a custom JSON decoder pass the result of :attr:`HTTPResponse.data` to the decoder. This method can raise either `UnicodeDecodeError` or `json.JSONDecodeError`. Read more :ref:`here `. zutf-8)r(decode_jsonloadsrs r*jsonzBaseHTTPResponse.jsons'yy({{4  r-ctr#r$r/s r*urlzBaseHTTPResponse.urlr1r-ctr#r$r'rs r*rzBaseHTTPResponse.url r1r-ctr#r$r/s r* connectionzBaseHTTPResponse.connectionr1r-c|jSr#)_retriesr/s r*rzBaseHTTPResponse.retriess }}r-cj|*|jr|jdj|_||_y)Nr5)historyredirect_locationrr)r'rs r*rzBaseHTTPResponse.retriess-  7??r*<CIIK == 4#8#88 ,-= > ((.33C8wwyD$9$99GGI  $01A$BDM ) !s-3B8cv|s|jr td|S||rd} |jr$|jj||}d|_|r||jz }|S#|j$r?}|j j ddj}td|z||d}~wwxYw) zN Decode the data passed in and potentially flush the decoder. _Calling read(decode_content=False) is not supported after read(decode_content=True) was called.Nr5rMTrrzEReceived response with content-encoding: %s, but failed to decode it.) rrrr+rrrrr_flush_decoder)r'r(r flush_decoderr)rr s r*_decodezBaseHTTPResponse._decodeNs(("<K  J }}}}///L,0)  D'') )D )) #||//0BBGMMO ')9:   s0A**B89:B33B8c|jr6|jjd|jjzSy)zk Flushes the decoder. Should only be called if the decoder is actually being used. r-)rr+r3r/s r*rzBaseHTTPResponse._flush_decoderss5 ====++C04==3F3F3HH Hr-c|jt|}t|dk(ry||dt|t|Sr)rrj)r'btemps r*readintozBaseHTTPResponse.readinto}s;yyQ  t9>!AkD Nt9 r-cRtjdtd|jS)Nz|HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.r\category stacklevel)warningswarnDeprecationWarningrr/s r* getheaderszBaseHTTPResponse.getheaderss&  O'  ||r-crtjdtd|jj ||S)NzHTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).r\r)rrrrr)r'namedefaults r* getheaderzBaseHTTPResponse.getheaders3  V'  ||g..r-c|jSr#)rr/s r*infozBaseHTTPResponse.infos ||r-c|jSr#)rr/s r*geturlzBaseHTTPResponse.geturls xxr-)r>typing.Mapping[str, str] | typing.Mapping[bytes, bytes] | Nonerr8rr8r str | Nonerr;rr'r Retry | Noner9rX)r9zstr | None | Literal[False]r<)r9z typing.Anyr9r')rr'r9rXr9HTTPConnection | None)r9r()rr(r9rXiN)r int | Noner bool | Noner9typing.Iterator[bytes]NNFrr-rr.rr;r9r7NNrWr#) r(r7rr.rr;r)r-r9r7)rrgr9r8)r9r )rrr r'r9r')$r=r>r?r rtrrIOErrorrHrOr__annotations__ ZstdErrorrKrr@r(rrsetterrrrrrrrrr rrrrr!r#r%rAr-r*rrs[ * TF" VH$1:A4::9N6N &,,0 $..!22 SW !%4P4 4  4  44 44 4@ $$ !$$ ZZ$$$$ ^^  FJ$$7B$ $&*# $ $$$ $  $&*$ $$$ $$$$C0"& ##$# #  #  #J/r-rceZdZdZ d dfd ZddZddZeddZeddZ d dZ d!dZ d"d Z e d#d Zd$d%d Z d$ d%d Z d& d'd Z d( d)dZd dZddZed dZd!dZddZd dZddZd%dZ d* d)dZed+dZej:d,dZd-dZxZS).ra 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. c t|||||||| | |_||_d|_d|_||_d|_| |_|rt|ttfr||_| |_ | |_ t|dr||_d|_|j!||_t%|_|r%|js|j)||_yyy)N)rrrrrrrrrr)superrKenforce_content_length auto_close_body_fp_original_response_fp_bytes_readmsgrrr7_pool _connectionrv chunk_left _init_lengthlength_remainingr_decoded_bufferr)r'bodyrrrrpreload_contentroriginal_responsepoolrrArr;request_methodrr< __class__s r*rKzHTTPResponse.__init__s& )#  '=#$ 04"3 Jtc5\2DJ % 4 DH'+!% 1 1. A 01 4::.ADJ$.?r-c|jr |jsy|jj|jd|_yr#)rBrC _put_connr/s r*rzHTTPResponse.release_conns4zz!1!1 T--.r-cd |jy#ttttf$rYywxYw)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)rrOSErrorr rr/s r*rzHTTPResponse.drain_conns+   IIK7L-@   s //cp|jr |jS|jr|jdSy)NT)r)r=r>rr/s r*r(zHTTPResponse.datas0 ::::  8899490 0r-c|jSr#)rCr/s r*rzHTTPResponse.connectionsr-c,t|jSr#)rr>r/s r*isclosedzHTTPResponse.isclosedsDHH%%r-c|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.tell!s """r-c|jjd}|~|jrtj dy |j dDchc] }t |}}t|dkDrtd|z|j}|dkrd}nd} t |j}|dvsd |cxkrd ksn|d k(rd}|Scc}w#t$rd}YBwxYw#t$rd}Y=wxYw) zM Set initial length value for Response content if available. zcontent-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.rr z8Content-Length contained multiple unmatching values (%s)r)i0dHEAD) rrrlogwarningrr8rjrpoprr)r'rLcontent_lengthvallengthsrrs r*rEzHTTPResponse._init_length)s &*\\%5%56F%G  %||  " 0>/C/CC/HI3s8IIwrFr IS_SECURETRANSPORT IS_PYOPENSSLsys version_inforrminrrr)r'r c_int_maxr max_chunk_amt chunk_amtr(s r*_fp_readzHTTPResponse._fp_reads xxx y))d.C.Ci.O++""c&6&6&@ZZ\F"M+? #C 7I9$C -Ixx}}Y/??$ $ T"+??$ $*-488==% Mdhhmmo Mr-c*|jyt|jdd}|j5|s|j|nd}|h|dk7rc|sa|jj |j r;|j /|j dk7r t|j|j dddrH|xjt|z c_|j |xj t|zc_|S#1swYUxYw)z7 Reads `amt` of bytes from the socket. NclosedFr-r) r>getattrrfrrrr;rFrr@rj)r'r fp_closedr(s r* _raw_readzHTTPResponse._raw_reads 88 DHHh6  " U-64==%CD3!8D //--9--2))<)S>STT- U0    3t9 , $$0%%T2% 9 U Us BD  Dc |j| |j}|d}|jr\|jjrF|j d|d|t |j z }|j j|t |j |k\r|j j|S|j|}|duxs |dk7xr| }|s> ,  $$((64''(C/++//44~~c"t >q(=X D(()Q.]]t}}'H'HK ;<<nmDD! B =",,&@ <<T%9%9!:: (L  $ $\ 2d**+c1d~~c*#||"!"S)=)=%>> ,  $$((6d**+c1d''++C0D r-c#K|jr,|jr|j||Ed{yt|jr:t |j dkDs"|jr|jjrm|j||}|r|t|js/t |j dkDrH|jr|jjrkyyyy7íw)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. r9Nr)rr) rsupports_chunked_readsrrr>rjrGrr0r)r'rrr(s r*rzHTTPResponse.streamPs$ <rrCr<rIOBaser/s r*rzHTTPResponse.closessT{{txx HHNN        " " $ IIOOD !r-c@|js)tjjj |S|j yt |j dr|j jSt |j dr|j jSy)NTrUrt)r<rrrt__get__r>rvrUr/s r*rtzHTTPResponse.closed}sq99##++D1 1 XX  TXXz *88$$& & TXXx (88?? "r-c|j tdt|jdr|jjStd)Nz-HTTPResponse has no file to get a fileno fromfilenozOThe file-like object this HTTPResponse is wrapped around has no file descriptor)r>rQrvrr/s r*rzHTTPResponse.filenosI 88 IJ J TXXx (88??$ $0 r-c|jIt|jdr2t|jdds|jjSyyy)Nr3rtF)r>rvrur3r/s r*r3zHTTPResponse.flushsJ HH '*DHHh688>># #7+ !r-c.t|jdS)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)rvr>r/s r*r{z#HTTPResponse.supports_chunked_readsstxx&&r-c|jy|jjj}|j ddd} t |d|_y#t $r|jt||dwxYw)N;r rrc) rDr>rreadlinerr8rrr)r'lines r*_update_chunk_lengthz!HTTPResponse._update_chunk_lengthsu ?? &xx{{##%zz$"1% ;!$mDO ; JJL$T40d : ;s A'Bcnd}|K|jj|j}|}|jjdd|_|S|jB||jkr3|jj|}|j|z |_|}|S||jk(rA|jj|}|jjdd|_|}|S|jj|j}|jjdd|_|S)Nr\)r> _safe_readrD)r'rreturned_chunkrvalues r* _handle_chunkzHTTPResponse._handle_chunks ;HH''8E"N HH   ""DO__ (S4??-BHH'',E"oo3DO"NDOO #HH'',E HH   ""DO"N "XX00AN HH   ""DOr-c#HK|j|js td|js t d|j 5|j r9t|j r$|j j dddy|jj dddy |j|jdk(rn-|j|}|j||d|}|r|M|r|j}|r||j:|jjj!}|sn|dk(rn |j:|j r|j jdddy#1swYyxYww)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.NrF)rrr)s )r rrr{rrfr?rrr>rrrDrrrr)r'rrrdecodedrs r*rzHTTPResponse.read_chunkeds ||$B **,*P   ", 0&&+>t?V?V+W''--/ , 0, 0xx{{", 0, 0))+??a'**3/,,#1"'" ' !M--/!M((&xx{{++-7? ((&&&''--/Y, 0, 0, 0s=AF"=F F"F2 F";B+F'&F F"FF"c|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. rr/s r*rzHTTPResponse.urls   r-c||_yr#rrs r*rzHTTPResponse.urls r-c#.Kg}|jdD]d}d|vrM|jd}dj||dzdz|ddD] }|dz |dr|dg}Qg}T|j|f|rdj|yyw)NTr9 r-rr r5)rrrr)r'rrchunksxs r*__iter__zHTTPResponse.__iter__"s [[[5 %E~U+hhv&2U::"$Ae)O$":$Rj\FF e$ % ((6" " sBB)rNrrNTTNNNNNTNNT)"rHr rr&rr8rr8rr'rIr;rr;rJz_HttplibHTTPResponse | NonerKzHTTPConnectionPool | Nonerr+rAz_HttplibHTTPMessage | Nonerr(r;r;rLr'rr'r<r;r9rXrWr<r*r:r)rLr'r9r-)r9z"typing.Generator[None, None, None]r#)rr-r9r7r0r1r,)rr-rr.r9z#typing.Generator[bytes, None, None]r2r))rrr9rX)r9r/) r=r>r?rrKrrr@r(rrUrWrErrfrrrwrrr}rrtrr3r{rrrrr6r __classcell__)rMs@r*rrsiDRV! $#9=*.,0*. $'+%)"&#:B:BP:B :B  :B  :B:B:B7:B(:B*:B(:B:B!%:B#:B  !:B"#:B$ %:Bx    &#6p5$5$n.Nd( ( (X&*# [ [$[ [  [|FJ7B ,@"   $' ;.EII0I06AI0 ,I0V!! ZZ  #r-r)rrr9r!)R __future__rrrrrloggingrerltypingrrH contextlibr http.clientr_HttplibHTTPMessager_HttplibHTTPResponsesocketrrd brotlicffirt ImportError zstandardrtuplemapr8search __version__groups _zstd_versionrrrr _base_connectionr _collectionsr rr rr exceptionsrrrrrrrrrrr util.responserr util.retryr TYPE_CHECKINGtyping_extensionsrconnectionpoolr getLoggerr=r]r!rCr[rarqrrrrrrrAr-r*rs"   %:<+#  %* C143C3CDKKMN%MMw ((CC    = )2g! $ $8!^8!v =!.=!@ ((V0n0f5B>5Bp  <<~bryybJQ ##Q #Y  F  Z0 Ds=E; AF; FF FF FF F'&F'