Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/urllib3/__pycache__/response.cpython-310.pyc

382 lines
33 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>f<01><00>
@s<>ddlmZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddl Z ddl m Z ddlmZddlmZddlmZe jrKddlmZzzddlZWn ey_ddlZYnwWn eyldZYnwzddlZWneeefy<>d Z Ynwe!e"e#e<07>$d
ej%<25><02>&<26><00><02>Z'e'd kr<>d Z nd Z dd l(m)Z)ddlm*Z*ddl+m,Z,ddl-m.Z.m/Z/m0Z0ddl1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;ddl<m=Z=m>Z>ddl?m@Z@e jr<>ddlAmBZBe<06>CeD<65>ZEGdd<16>d<16>ZFGdd<18>deF<65>ZGGdd<1A>d<1A>ZHGdd<1C>deF<65>ZIedu<01>rGdd<1E>deF<65>ZJe <20>rGdd <20>d eF<65>ZKGd!d"<22>d"eF<65>ZLd.d&d'<27>ZMGd(d)<29>d)<29>ZNGd*d+<2B>d+ejO<6A>ZPGd,d-<2D>d-eP<65>ZdS)/<2F>)<01> annotationsN)<01>contextmanager)<01> HTTPMessage)<01> HTTPResponse)<01>timeout<75>)<01>BaseHTTPConnectionFz^([0-9]+)\.([0-9]+))r<00>T)<01>util)<01>
_TYPE_BODY)<01>HTTPHeaderDict)<03> BaseSSLError<6F>HTTPConnection<6F> HTTPException)
<EFBFBD>BodyNotHttplibCompatible<6C> DecodeError<6F> HTTPError<6F>IncompleteRead<61>InvalidChunkLength<74> InvalidHeader<65> ProtocolError<6F>ReadTimeoutError<6F>ResponseNotChunked<65>SSLError)<02> is_fp_closed<65>is_response_to_head)<01>Retry)<01>HTTPConnectionPoolc@s eZdZd dd<05>Zd
dd<07>ZdS) <0B>ContentDecoder<65>data<74>bytes<65>returncC<01>t<00><00><01>N<><01>NotImplementedError<6F><02>selfr<00>r(<00>R/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/urllib3/response.py<70>
decompressG<00>zContentDecoder.decompresscCr"r#r$<00>r'r(r(r)<00>flushJr+zContentDecoder.flushN<68>rr r!r <00>r!r )<05>__name__<5F>
__module__<EFBFBD> __qualname__r*r-r(r(r(r)rFs
rc@<01>*eZdZd dd<04>Zd dd<08>Zdd d
<EFBFBD>Zd S)<0F>DeflateDecoderr!<00>NonecCsd|_d|_t<02><03>|_dS)NT<4E>)<05>
_first_try<EFBFBD>_data<74>zlib<69> decompressobj<62>_objr,r(r(r)<00>__init__OszDeflateDecoder.__init__rr c Cs<>|s|S|js |j<01>|<01>S|j|7_z|j<01>|<01>}|r#d|_d|_|WStjyId|_t<04>tj <00>|_z |<00>|j<03>Wd|_YSd|_ww)NF)r7r;r*r8r9<00>errorr:<00> MAX_WBITS)r'r<00> decompressedr(r(r)r*Ts$   <02>zDeflateDecoder.decompresscC<01>
|j<00><01>Sr#<00>r;r-r,r(r(r)r-j<00>
zDeflateDecoder.flushN<68>r!r5r.r/<00>r0r1r2r<r*r-r(r(r(r)r4Ns

r4c@seZdZdZdZdZdS)<05>GzipDecoderStaterr<00>N)r0r1r2<00> FIRST_MEMBER<45> OTHER_MEMBERS<52> SWALLOW_DATAr(r(r(r)rEnsrEc@r3)<0F> GzipDecoderr!r5cCst<00>dtj<00>|_tj|_dS)N<>)r9r:r>r;rErG<00>_stater,r(r(r)r<us zGzipDecoder.__init__rr cCs<>t<00>}|jtjks |st|<02>S z
||j<05>|<01>7}Wntjy5|j}tj|_|tj kr4t|<02>YS<00>w|jj
}|s@t|<02>Stj |_t<07> dtj <00>|_q)NTrK) <0A> bytearrayrLrErIr r;r*r9r=rH<00> unused_datar:r>)r'r<00>ret<65>previous_stater(r(r)r*ys&
 <02><02>zGzipDecoder.decompresscCr@r#rAr,r(r(r)r-<00>rBzGzipDecoder.flushNrCr.r/rDr(r(r(r)rJts

rJc@s eZdZd dd<04>Zd
dd<07>ZdS) <0B> BrotliDecoderr!r5cCs>t<00><01>|_t|jd<01>rt|d|jj<05>dSt|d|jj<06>dS)Nr*)<07>brotli<6C> Decompressorr;<00>hasattr<74>setattrr*<00>processr,r(r(r)r<<00>s
 zBrotliDecoder.__init__r cCst|jd<01>r |j<01><02>SdS)Nr-r6)rTr;r-r,r(r(r)r-<00>s 
zBrotliDecoder.flushNrCr/)r0r1r2r<r-r(r(r(r)rQ<00>s
rQc@r3)<0F> ZstdDecoderr!r5cCst<00><01><00><02>|_dSr#)<04>zstd<74>ZstdDecompressorr:r;r,r(r(r)r<<00>szZstdDecoder.__init__rr cCsh|sdS|j<00>|<01>g}|jjr/|jjr/|jj}t<04><05><00><06>|_|<02>|j<00>|<03><01>|jjr/|jjsd<01>|<02>S)Nr6) r;r*<00>eofrNrXrYr:<00>append<6E>join)r'r<00>
data_partsrNr(r(r)r*<00>s<10>
zZstdDecoder.decompresscCs|j<00><01>}|jjs td<01><01>|S)NzZstandard data is incomplete)r;r-rZr)r'rOr(r(r)r-<00>s
zZstdDecoder.flushNrCr.r/rDr(r(r(r)rW<00>s


rWc@s.eZdZdZddd<07>Zdd d
<EFBFBD>Zdd d <0A>ZdS)<12> 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.
<20>modes<65>strr!r5cCsdd<02>|<01>d<03>D<00>|_dS)NcSsg|]}t|<01><01><00><01>qSr()<02> _get_decoder<65>strip)<02>.0<EFBFBD>mr(r(r)<00>
<listcomp><3E>sz)MultiDecoder.__init__.<locals>.<listcomp><3E>,)<02>split<69> _decoders)r'r_r(r(r)r<<00>szMultiDecoder.__init__r cCs|jd<00><01>S<00>Nr)rhr-r,r(r(r)r-<00>szMultiDecoder.flushrcCst|j<01>D]}|<02>|<01>}q|Sr#)<03>reversedrhr*)r'r<00>dr(r(r)r*<00>s zMultiDecoder.decompressN)r_r`r!r5r/r.)r0r1r2<00>__doc__r<r-r*r(r(r(r)r^<00>s


r^<00>moder`r!cCsLd|vrt|<00>S|dvrt<01>Stdur|dkrt<03>Str#|dkr#t<05>St<06>S)Nrf)<02>gzip<69>x-gzip<69>brrX)r^rJrRrQ<00>HAS_ZSTDrWr4)rmr(r(r)ra<00>s rac@sBeZdZdZddd<05>Zddd<08>Zdd d <0C>Zddd<0F>Zddd<11>ZdS)<18>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().
r!r5cCst<00><01>|_d|_dSri)<04> collections<6E>deque<75>buffer<65>_sizer,r(r(r)r<<00>s

zBytesQueueBuffer.__init__<5F>intcC<01>|jSr#)rvr,r(r(r)<00>__len__<5F>r+zBytesQueueBuffer.__len__rr cCs"|j<00>|<01>|jt|<01>7_dSr#)rur[rv<00>lenr&r(r(r)<00>put<75>s zBytesQueueBuffer.put<75>nc Cs<>|dkrdS|js td<03><01>|dkrtd<04><01>d}t<03><04>}||krp||}|j<00><05>}t|<05>}||krT|d|<04>||d<00>}}|<03>|<07>|j<00>|<08>|j |8_ |<03>
<EFBFBD>S|<03>|<05>|j |8_ ||7}|jsl |<03>
<EFBFBD>S||ks|<03>
<EFBFBD>S)Nrr6zbuffer is emptyzn should be > 0) ru<00> RuntimeError<6F>
ValueError<EFBFBD>io<69>BytesIO<49>popleftrz<00>write<74>
appendleftrv<00>getvalue) r'r|<00>fetchedrO<00> remaining<6E>chunk<6E> chunk_length<74>
left_chunk<EFBFBD> right_chunkr(r(r)<00>get<65>s6

 
<EFBFBD><08>zBytesQueueBuffer.getcsl|j<00><00>s|jdks J<00>dSt<02><00>dkr<19><00><03>}nt<04><05>}|<02><06>fdd<05>tt<02><00><01>D<00><01>|<02><08>}d|_|S)Nrr6rc3s<00>|]}<01><00><00>VqdSr#)r<>)rc<00>_<>rur(r)<00> <genexpr>&<00><02>z+BytesQueueBuffer.get_all.<locals>.<genexpr>) rurvrz<00>poprr<><00>
writelines<EFBFBD>ranger<65>)r'<00>resultrOr(r<>r)<00>get_alls 
 zBytesQueueBuffer.get_allNrC<00>r!rw)rr r!r5)r|rwr!r r/) r0r1r2rlr<ryr{r<>r<>r(r(r(r)rr<00>s



rrc@s<>eZdZUgd<01>Zeduredg7Zeredg7Zgd<05>Zeej fZ
de d<edur0e
ej f7Z
er8e
e j f7Z
ddd<08>dZdd<1A>Zd[dd<1D>Zed\dd <20><04>Zd]d"d#<23>Zed^d$d%<25><04>Zejd_d'd%<25><04>Zed`d)d*<2A><04>Zedad+d,<2C><04>Zejdbd-d,<2C><04>Z dcddd3d4<64>Z   5dedfd7d8<64>Z  dgdhd9d:<3A>Z  dgddd;d<<3C>Zdid=d><3E>Zdid?d@<40>ZdidAdB<64>ZdidCdD<64>ZdjdGdH<64>Zd\dIdJ<64>Z dkdMdN<64>Z!dldPdQ<64>Z"dmdndTdU<64>Z#dldVdW<64>Z$d^dXdY<64>Z%dS)o<>BaseHTTPResponse)rnro<00>deflateNrprX)i-i.i/i3i4ztuple[type[Exception], ...]<5D>DECODER_ERROR_CLASSES)<02>headers<72>retriesr<73><00>>typing.Mapping[str, str] | typing.Mapping[bytes, bytes] | None<6E>statusrw<00>version<6F>version_stringr`<00>reason<6F>
str | None<6E>decode_content<6E>bool<6F> request_urlr<6C><00> Retry | Noner!r5c Cs<>t|t<01>r ||_nt|<01>|_||_||_||_||_||_d|_||_ ||_
d|_ |j<02> dd<03><02> <0A>} dd<05>| <09>d<06>D<00>}
d|
vrCd|_ d|_|dS) NFztransfer-encoding<6E>css<00>|]}|<01><00>VqdSr#)rb)rc<00>encr(r(r)r<>Wr<>z,BaseHTTPResponse.__init__.<locals>.<genexpr>rf<00>chunkedT)<10>
isinstancer r<>r<>r<>r<>r<>r<><00>_has_decoded_content<6E> _request_urlr<6C>r<>r<><00>lowerrg<00>_decoder) r'r<>r<>r<>r<>r<>r<>r<>r<><00>tr_enc<6E> encodingsr(r(r)r<;s$

zBaseHTTPResponse.__init__<5F>"str | None | typing.Literal[False]cCs|j|jvr |j<02>d<01>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.
<20>locationF)r<><00>REDIRECT_STATUSESr<53>r<>r,r(r(r)<00>get_redirect_location^s  z&BaseHTTPResponse.get_redirect_locationr cCr"r#r$r,r(r(r)rj<00>zBaseHTTPResponse.data<74>
typing.AnycCs|j<00>d<01>}t<02>|<01>S)a<>
Deserializes the body of the HTTP response as a Python object.
The body of the HTTP response must be encoded using UTF-8, as per
`RFC 8529 Section 8.1 <https://www.rfc-editor.org/rfc/rfc8259#section-8.1>`_.
To use a custom JSON decoder pass the result of :attr:`HTTPResponse.data` to
your custom decoder instead.
If the body of the HTTP response is not decodable to UTF-8, a
`UnicodeDecodeError` will be raised. If the body of the HTTP response is not a
valid JSON document, a `json.JSONDecodeError` will be raised.
Read more :ref:`here <json_content>`.
:returns: The body of the HTTP response as a Python object.
zutf-8)r<00>decode<64>_json<6F>loadsr&r(r(r)<00>jsonns 
zBaseHTTPResponse.jsoncCr"r#r$r,r(r(r)<00>url<72>r<>zBaseHTTPResponse.urlr<6C>cCr"r#r$<00>r'r<>r(r(r)r<><00>r<><00>BaseHTTPConnection | NonecCr"r#r$r,r(r(r)<00>
connection<EFBFBD>r<>zBaseHTTPResponse.connectioncCrxr#)<01>_retriesr,r(r(r)r<><00>r<>zBaseHTTPResponse.retriescCs&|dur|jr|jdj|_||_dS)N<><4E><EFBFBD><EFBFBD><EFBFBD>)<04>history<72>redirect_locationr<6E>r<>)r'r<>r(r(r)r<><00>s
<01><00>amt<6D>
int | None<6E> bool | None<6E>typing.Iterator[bytes]cCr"r#r$<00>r'r<>r<>r(r(r)<00>stream<61>szBaseHTTPResponse.streamF<6D> cache_contentcCr"r#r$)r'r<>r<>r<>r(r(r)<00>read<61><00>zBaseHTTPResponse.readcCr"r#r$r<>r(r(r)<00>read1<64><00>zBaseHTTPResponse.read1cCr"r#r$r<>r(r(r)<00> read_chunked<65>r<>zBaseHTTPResponse.read_chunkedcCr"r#r$r,r(r(r)<00> release_conn<6E>r+zBaseHTTPResponse.release_conncCr"r#r$r,r(r(r)<00>
drain_conn<EFBFBD>r+zBaseHTTPResponse.drain_conncCr"r#r$r,r(r(r)<00>close<73>r+zBaseHTTPResponse.closecsr<00>j<00>dd<02><02><02>}<01>jdur3|<01>jvrt|<01><01>_dSd|vr5<72>fdd<06>|<01>d<04>D<00>}|r7t|<01><01>_dSdSdSdS)z=
Set-up the _decoder attribute if necessary.
<20>content-encodingr<67>Nrfcs"g|] }|<01><00><00>jvr|<01><00><00>qSr()rb<00>CONTENT_DECODERS)rc<00>er,r(r)re<00>s
<06>z2BaseHTTPResponse._init_decoder.<locals>.<listcomp>)r<>r<>r<>r<>r<>rarg)r'<00>content_encodingr<67>r(r,r)<00> _init_decoder<65>s


<06><04>zBaseHTTPResponse._init_decoderr<00> flush_decoderc
Cs<>|s |jr td<01><01>|Sz|jr|j<02>|<01>}d|_Wn|jy7}z|j<05>dd<04><02><07>}td||<04>|<04>d}~ww|r@||<00> <09>7}|S)zN
Decode the data passed in and potentially flush the decoder.
<20>_Calling read(decode_content=False) is not supported after read(decode_content=True) was called.Tr<54>r<>zEReceived response with content-encoding: %s, but failed to decode it.N)
r<EFBFBD>r}r<>r*r<>r<>r<>r<>r<00>_flush_decoder)r'rr<>r<>r<>r<>r(r(r)<00>_decode<64>s4<04> <04><02><02><02><08><02> zBaseHTTPResponse._decodecCs |jr|j<00>d<01>|j<00><02>SdS)zk
Flushes the decoder. Should only be called if the decoder is actually
being used.
r6)r<>r*r-r,r(r(r)r<><00>szBaseHTTPResponse._flush_decoder<65>brMcCs6|<00>t|<01><01>}t|<02>dkrdS||dt|<02><01><t|<02>Sri)r<>rz)r'r<><00>tempr(r(r)<00>readinto<74>s
 zBaseHTTPResponse.readintor cCstjdtdd<03>|jS)Nz|HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.rF<00><02>category<72>
stacklevel)<04>warnings<67>warn<72>DeprecationWarningr<67>r,r(r(r)<00>
getheaderss <06>zBaseHTTPResponse.getheaders<72>name<6D>defaultcCstjdtdd<03>|j<03>||<02>S)Nz<4E>HTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).rFr<>)r<>r<>r<>r<>r<>)r'r<>r<>r(r(r)<00> getheader s <06>zBaseHTTPResponse.getheadercCrxr#)r<>r,r(r(r)<00>infor+zBaseHTTPResponse.infocCrxr#)r<>r,r(r(r)<00>geturlr+zBaseHTTPResponse.geturl)r<>r<>r<>rwr<>rwr<>r`r<>r<>r<>r<>r<>r<>r<>r<>r!r5)r!r<>r/)r!r<><00>r!r<>)r<>r<>r!r5)r!r<>)r!r<>)r<>r<>r!r5<00>r<>N)r<>r<>r<>r<>r!r<><00>NNF<4E>r<>r<>r<>r<>r<>r<>r!r <00>NN<4E>r<>r<>r<>r<>r!r rC)rr r<>r<>r<>r<>r!r )r<>rMr!rw)r!r r#)r<>r`r<>r<>r!r<>)&r0r1r2r<>rRrqr<><00>IOErrorr9r=r<><00>__annotations__rX<00> ZstdErrorr<r<><00>propertyrr<>r<><00>setterr<72>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r(r(r(r)r<>,sh


  <0E>
# 
      <0C> <0C>
 <0C>  <0C>






r<>cs<>eZdZdZ                 dedf<64>fd%d&<26> Zdgd'd(<28>Zdgd)d*<2A>Zedhd,d-<2D><04>Zedid.d/<2F><04>Z djd0d1<64>Z
dkd2d3<EFBFBD>Z dld5d6<64>Z e dmd8d9<64><04>Z dnd:d;<3B>dod>d?<3F>Z dnd:d;<3B>dod@dA<64>Z   :dpdqdDdE<64>Z  drdsdFdG<64>Z dtdudJdK<64>ZdjdLdM<64>ZdgdNdO<64>ZedjdPdQ<64><04>ZdkdRdS<64>ZdgdTdU<64>ZdjdVdW<64>ZdgdXdY<64>ZdvdZd[<5B>Z drdud\d]<5D>Zedwd^d_<64><04>Zejdxdad_<64><04>Zdydcdd<64>Z<1F>Z S)zra<>
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.
r<>Nr<00>HTTP/?T<>bodyr r<>r<>r<>rwr<>r<>r`r<>r<><00>preload_contentr<74>r<><00>original_response<73>_HttplibHTTPResponse | None<6E>pool<6F>HTTPConnectionPool | Noner<65><00>HTTPConnection | None<6E>msg<73>_HttplibHTTPMessage | Noner<65>r<><00>enforce_content_length<74>request_methodr<64><00>
auto_closer!r5c
s<>t<00>j|||||||| d<01>||_||_d|_d|_| |_d|_| |_|r/t |t
t f<02>r/||_|
|_ | |_ t|d<03>r=||_d|_|<00>|<0F>|_t<12>|_|rX|jsZ|j|d<04>|_dSdSdS)N)r<>r<>r<>r<>r<>r<>r<>r<>rr<><00>r<>)<15>superr<r<>r<00>_body<64>_fp<66>_original_response<73>_fp_bytes_readr<64>r<>r`r <00>_pool<6F> _connectionrT<00>
chunk_left<EFBFBD> _init_length<74>length_remainingrr<00>_decoded_bufferr<72>)r'r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<00><01> __class__r(r)r<=s:<06> 
 
<08>zHTTPResponse.__init__cCs(|jr|jsdS|j<00>|j<01>d|_dSr#)rr<00> _put_connr,r(r(r)r<>{s 
zHTTPResponse.release_connc Cs,z|<00><00>WdSttttfyYdSw)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<00>OSErrorr rr,r(r(r)r<><00>s
<02>zHTTPResponse.drain_connr cCs"|jr|jS|jr|jdd<02>SdS)NT)r<>)rrr<>r,r(r(r)r<00>s
 zHTTPResponse.datacCrxr#)rr,r(r(r)r<><00>r<>zHTTPResponse.connectioncCs
t|j<01>Sr#)rrr,r(r(r)<00>isclosed<65>rBzHTTPResponse.isclosedcCrx)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).
)rr,r(r(r)<00>tell<6C>r<>zHTTPResponse.tellr<6C>cCs<>|j<00>d<01>}|durC|jrt<03>d<03>dSzdd<05>|<02>d<06>D<00>}t|<03>dkr+td|<00><01>|<03><08>}Wn t y;d}Yn
w|d krBd}nd}zt
|j <0B>}Wn t yWd }Ynw|d
vskd |krfd kskn|d krmd }|S)zM
Set initial length value for Response content if available.
zcontent-lengthNz<4E>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.cSsh|]}t|<01><01>qSr()rw)rc<00>valr(r(r)<00> <setcomp><3E>sz,HTTPResponse._init_length.<locals>.<setcomp>rfrz8Content-Length contained multiple unmatching values (%s)r)<02><>i0<00>d<00><><00>HEAD) r<>r<>r<><00>log<6F>warningrgrzrr<>r~rwr<>)r'r<><00>content_length<74>lengths<68>lengthr<68>r(r(r)r
<00>s> <04> <02><04>  <02><02> <02>&zHTTPResponse._init_length<74>"typing.Generator[None, None, None]c
cs<><00>d}z<>zdVWnrty}zt|jdd<03>|<02>d}~wty;}zdt|<02>vr/t|<02>|<02>t|jdd<03>|<02>d}~wtye}z|jdurV|jdurV|j|j krVd}nd|<02><02>}t ||<02>|<02>d}~wt
t fy{}z t d|<02><02>|<02>|<02>d}~wwd}W|s<>|j r<>|j <0C> <0A>|jr<>|j<0E> <0A>|j r<>|j <0C><0F>r<>|<00><10>dSdSdS|s<>|j r<>|j <0C> <0A>|jr<>|j<0E> <0A>|j r<>|j <0C><0F>r<>|<00><10>www)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 outz!Response may not contain content.zConnection broken: T)<11> SocketTimeoutrrr r`rr<00>expected<65>partialrrrrr<>rrr<>)r'<00>
clean_exitr<EFBFBD><00>argr(r(r)<00>_error_catcher<65>sT<02> 
<08> 
<08>


 <08><08><02>

 <08><04>


<04>zHTTPResponse._error_catcherF<72>r<>r<>r<>cCs |jsJ<00>d}|r ||ks|durf|jrf|j|krftjs!tjdkrf|r)|j<00>|<03>St<07><08>}d}|dus7|dkrb|durEt ||<05>}||8}n|}|j<00>
|<06>}|sT |<04> <0C>S|<04> |<07>~|dus7|dks7|<04> <0C>S|rw|durr|j<00>|<01>S|j<00><06>S|dur<>|j<00>
|<01>S|j<00>
<EFBFBD>S)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<><69><EFBFBD>N)<02><00>
ir) rr r
<00> IS_PYOPENSSL<53>sys<79> version_infor<6F>rr<><00>minr<6E>r<>r<>)r'r<>r<><00> c_int_maxru<00> max_chunk_amt<6D> chunk_amtrr(r(r)<00>_fp_read!s@
<02><02>
<02>
 

 
<EFBFBD><10> zHTTPResponse._fp_readcCs|jdurdSt|jdd<03>}|<00><02><00>K|s|j||d<04>nd}|durB|dkrB|sB|j<00><04>|jrA|jdurA|jdkrAt|j|j<06><02>n|rV|dkrJ|rQ|jt |<04>krV|j<00><04>Wd<00>n1s`wY|r~|jt |<04>7_|jdur~|jt |<04>8_|S)z7
Reads `amt` of bytes from the socket.
N<>closedFr%r6r)
r<00>getattrr$r/r<>r<>r rrrz)r'r<>r<><00> fp_closedrr(r(r)<00> _raw_readZs.


<02>

<02>
<02><1C> 
zHTTPResponse._raw_readr<64>r<>cCs0|<00><00>|dur |j}|r|dkrd}n|dur'd}t|j<03>|kr'|j<03>|<01>S|<00>|<01>}|dup6|dko6| }|sBt|j<03>dkrB|S|durT|<00>|||<05>}|rR||_|S|s_|jr]t d<04><01>|S|<00>|||<05>}|j<03>
|<06>t|j<03>|kr<>|r<>|<00>|<01>}|<00>|||<05>}|j<03>
|<06>t|j<03>|kr<>|su|j<03>|<01>}|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.)
NrFr<46>) r<>r<>rzr r<>r3r<>rr<>r}r{)r'r<>r<>r<>rr<><00> decoded_datar(r(r)r<><00>sB  
<04><04> 
 <12> zHTTPResponse.readcCs<>|dur|j}|r|dkrd}|jr.|std<03><01>t|j<04>dkr.|dur(|j<04><05>S|j<04>|<01>S|dkr4dS|j|dd<06>}|rA|durC|S|<00><08> | }|<00> |||<04>}|j<04>
|<05>|s\|r]n|jddd<06>}qH|durn|j<04><05>S|j<04>|<01>S)a<>
Similar to ``http.client.HTTPResponse.read1`` and documented
in :meth:`io.BufferedReader.read1`, but with an additional parameter:
``decode_content``.
:param amt:
How much of the content to read.
:param decode_content:
If True, will attempt to decode the body based on the
'content-encoding' header.
NrzaCalling read1(decode_content=False) is not supported after read1(decode_content=True) was called.r6Tr%i ) r<>r<>r}rzr r<>r<>r3r<>r<>r{)r'r<>r<>rr<>r4r(r(r)r<><00>s< <04>
   <02>
 zHTTPResponse.read1r<31><00>#typing.Generator[bytes, None, None]ccsx<00>|jr|<00><01>r|j||d<01>EdHdSt|j<04>r t|j<06>dkr:|j||d<04>}|r,|Vt|j<04>r t|j<06>dks dSdS)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.
rNr)r<>r<>)r<><00>supports_chunked_readsr<73>rrrzr r<>)r'r<>r<>rr(r(r)r<>s<02> <20>zHTTPResponse.streamcCsdS)NTr(r,r(r(r)<00>readable*szHTTPResponse.readablecCs@|js |jr |j<01><02>|jr|j<03><02>|jstj<06>|<00>dSdSr#)r0rr<>rrr<00>IOBaser,r(r(r)r<>-s 

<04>zHTTPResponse.closecCsP|js
tjj<03>|<00>S|jdurdSt|jd<02>r|j<05><07>St|jd<03>r&|jjSdS)NTrr0)rrr8r0<00>__get__rrTrr,r(r(r)r07s
 
 zHTTPResponse.closedcCs0|jdur td<01><01>t|jd<02>r|j<00><03>Std<03><01>)Nz-HTTPResponse has no file to get a fileno from<6F>filenozOThe file-like object this HTTPResponse is wrapped around has no file descriptor)rrrTr:r,r(r(r)r:Ds
 
<04>zHTTPResponse.filenocCs:|jdurt|jd<01>rt|jdd<03>s|j<00><03>SdSdSdS)Nr-r0F)rrTr1r-r,r(r(r)r-Os

<02> <02>
 <0C>zHTTPResponse.flushcCs t|jd<01>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().
<20>fp)rTrr,r(r(r)r6Ws z#HTTPResponse.supports_chunked_readscCsn|jdurdS|jj<02><03>}|<01>dd<02>d}z t|d<04>|_WdSty6|<00><07>|r1t||<01>d<00>t d<05>d<00>w)N<>;rrrKzResponse ended prematurely)
r rr;<00>readlinergrwr~r<>rr)r'<00>liner(r(r)<00>_update_chunk_length`s
   
<02>z!HTTPResponse._update_chunk_lengthcCs<>d}|dur|j<00>|j<02>}|}|j<00>d<01>d|_|S|jdur4||jkr4|j<00>|<01>}|j||_|}|S||jkrL|j<00>|<01>}|j<00>d<01>d|_|}|S|j<00>|j<02>}|j<00>d<01>d|_|S)NrF)r<00>
_safe_readr )r'r<><00>returned_chunkr<6B><00>valuer(r(r)<00> _handle_chunkrs, <14>  
<EFBFBD>  <0E> zHTTPResponse._handle_chunkccsR<00>|<00><00>|js td<01><01>|<00><03>std<02><01>|<00><05><00><>|jr/t|j<06>r/|j<06><08> Wd<00>dS|j j
dur> Wd<00>dS|rF|dkrFd} |<00> <0B>|j dkrQn|<00> |<01>}|j||dd<07>}|rc|VqG|ro|<00><0F>}|ro|V|j dur<>|j j
<EFBFBD><10>}|s}n
|dkr<>n|j dust|jr<>|j<06><08>Wd<00>dSWd<00>dS1s<>wYdS) 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.NrTF)r<>r<>s
)r<>r<>rr6rr$rrr<>rr;r?r rCr<>r<>r=)r'r<>r<>r<><00>decodedr>r(r(r)r<><00>s^<02><04><04>

<10> <10> 

<06><02> 
 
<EFBFBD> <0E>-"<22>zHTTPResponse.read_chunkedcCrx)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.
<20>r<>r,r(r(r)r<><00>szHTTPResponse.urlr<6C>cCs
||_dSr#rEr<>r(r(r)r<><00>s
r<>ccs<><00>g}|jdd<02>D]7}d|vr;|<02>d<03>}d<04>|<01>|ddV|dd<07>D]}|dVq&|dr8|dg}q g}q |<01>|<02>q |rKd<04>|<01>VdSdS)NTr<00>
r6rrr<>)r<>rgr\r[)r'rur<><00>chunks<6B>xr(r(r)<00>__iter__<5F>s<02>
   <04>zHTTPResponse.__iter__)r<>Nrrr<>NTTNNNNNTNNT)$r<>r r<>r<>r<>rwr<>rwr<>r`r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rr<>r!r5rCr/)r!r<>)r!r<>r<>)r<>r<>r!r<>)r!rr#)r<>r<>r<>r<>r!r r<>r<>r<>r<>r<>)r<>r<>r<>r<>r!r5)r<>r<>r!r r<>)r<>r`r!r5)r!r<>)!r0r1r2rlr<r<>r<>r<>rr<>rrr
rr$r/r3r<>r<>r<>r7r<>r0r:r-r6r?rCr<>r<>r<>rI<00> __classcell__r(r(r r)rs<>"<10>
>
 



8 C<02><0E>;<02><0E>6 <0C>L <0C>7 <0C>




 <0C>M  r)rmr`r!r)Q<>
__future__rrsrr<>r<><00>logging<6E>rer)<00>typingr<67>r9<00>
contextlibr<00> http.clientr<00>_HttplibHTTPMessager<00>_HttplibHTTPResponse<73>socketrr<00> TYPE_CHECKING<4E>_base_connectionr<00>
brotlicffirR<00> ImportError<6F> zstandardrX<00>AttributeErrorr~rq<00>tuple<6C>maprw<00>search<63> __version__<5F>groups<70> _zstd_versionr<6E>r
r <00> _collectionsr r<>r rr<00>
exceptionsrrrrrrrrrr<00> util.responserr<00>
util.retryr<00>connectionpoolr<00> getLoggerr0rrr4rErJrQrWr^rarrr8r<>r(r(r(r)<00><module>sz         <02><04> <02> <02><04>   0  
 

Iq