1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
U
¡ý°d—‰ã@sìdZddlZddlZddlmZddlmZmZm    Z    m
Z
m Z ddl m Z ddlmZddlmZdd    lmZmZdd
lmZdd lmZmZmZmZmZmZmZdd lmZ dd lm!Z!m"Z"m#Z#ddl$m%Z%m&Z&m'Z'ddl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.ddl(mZ/ddl(m0Z0ddl(m Z1ddl(m2Z2ddl3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCe6jDe6jEe6jFe6jGe6jHfZIdZJdZKdZLGdd„dƒZMGdd„dƒZNGdd „d eNƒZOGd!d"„d"eMeNƒZPGd#d$„d$ƒZQdS)%z`
requests.models
~~~~~~~~~~~~~~~
 
This module contains the primary objects that power Requests.
éN)ÚUnsupportedOperation)Ú DecodeErrorÚLocationParseErrorÚ ProtocolErrorÚReadTimeoutErrorÚSSLError)Ú RequestField)Úencode_multipart_formdata)Ú    parse_urlé)Úto_native_stringÚunicode_is_ascii)Ú HTTPBasicAuth)ÚCallableÚJSONDecodeErrorÚMappingÚ
basestringÚ builtin_strÚchardetÚ    cookielib)Újson)Ú    urlencodeÚurlsplitÚ
urlunparse)Ú_copy_cookie_jarÚcookiejar_from_dictÚget_cookie_header)ÚChunkedEncodingErrorÚConnectionErrorÚContentDecodingErrorÚ    HTTPErrorÚInvalidJSONErrorÚ
InvalidURL)r)Ú MissingSchema)r)ÚStreamConsumedError)Ú default_hooks)Úcodes)ÚCaseInsensitiveDict)
Úcheck_header_validityÚget_auth_from_urlÚguess_filenameÚguess_json_utfÚ iter_slicesÚparse_header_linksÚ requote_uriÚstream_decode_response_unicodeÚ    super_lenÚto_key_val_listéi(ic@s0eZdZedd„ƒZedd„ƒZedd„ƒZdS)ÚRequestEncodingMixincCsNg}t|jƒ}|j}|sd}| |¡|j}|rD| d¡| |¡d |¡S)zBuild the path URL to use.ú/ú?Ú)rÚurlÚpathÚappendÚqueryÚjoin)Úselfr7Úpr8r:©r>úFd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\requests/models.pyÚpath_urlUs
 
 
 
zRequestEncodingMixin.path_urlcCs¶t|ttfƒr|St|dƒr |St|dƒr®g}t|ƒD]j\}}t|tƒsRt|dƒsX|g}|D]B}|dk    r\| t|tƒr€| d¡n|t|tƒr–| d¡n|f¡q\q6t|ddS|SdS)züEncode parameters in a piece of data.
 
        Will successfully encode parameters when passed as a dict or a list of
        2-tuples. Order is retained if data is a list of 2-tuples but arbitrary
        if parameters are supplied as a dict.
        ÚreadÚ__iter__Núutf-8T)Údoseq)    Ú
isinstanceÚstrÚbytesÚhasattrr1rr9Úencoder)ÚdataÚresultÚkÚvsÚvr>r>r?Ú_encode_paramsjs$    
 
þÿ z#RequestEncodingMixin._encode_paramscCs®|stdƒ‚nt|tƒr tdƒ‚g}t|p,iƒ}t|p8iƒ}|D]|\}}t|tƒs\t|dƒsb|g}|D]T}|dk    rft|tƒs„t|ƒ}| t|tƒrœ| d¡n|t|tƒr²|     d¡n|f¡qfq@|D]Ö\}}d}d}    t|t
t fƒr t |ƒdkrø|\}
} n&t |ƒdkr|\}
} }n |\}
} }}    nt |ƒp,|}
|} t| tttfƒrJ| } n(t| dƒr`|  ¡} n| dkrnqÂn| } t|| |
|    d    } | j|d
| | ¡qÂt|ƒ\}}||fS) a¥Build the body for a multipart/form-data request.
 
        Will successfully encode files when passed as a dict or a list of
        tuples. Order is retained if data is a list of tuples but arbitrary
        if parameters are supplied as a dict.
        The tuples may be 2-tuples (filename, fileobj), 3-tuples (filename, fileobj, contentype)
        or 4-tuples (filename, fileobj, contentype, custom_headers).
        zFiles must be provided.zData must not be a string.rBNrCéérA)ÚnamerJÚfilenameÚheaders)Ú content_type)Ú
ValueErrorrErr1rHrGrFr9ÚdecoderIÚtupleÚlistÚlenr*Ú    bytearrayrArÚmake_multipartr    )ÚfilesrJÚ
new_fieldsÚfieldsÚfieldÚvalrNrLÚftÚfhÚfnÚfpÚfdataÚrfÚbodyrUr>r>r?Ú _encode_filesˆsX
 
 
 
ÿ üÿ      
 
 
   z"RequestEncodingMixin._encode_filesN)Ú__name__Ú
__module__Ú __qualname__Úpropertyr@Ú staticmethodrOrir>r>r>r?r3Ts 
 
r3c@seZdZdd„Zdd„ZdS)ÚRequestHooksMixincCs^||jkrtd|›dƒ‚t|tƒr6|j| |¡n$t|dƒrZ|j| dd„|Dƒ¡dS)zProperly register a hook.z.Unsupported event specified, with event name "ú"rBcss|]}t|tƒr|VqdS©N)rEr)Ú.0Úhr>r>r?Ú    <genexpr>Øs
z2RequestHooksMixin.register_hook.<locals>.<genexpr>N)ÚhooksrVrErr9rHÚextend©r<ÚeventÚhookr>r>r?Ú register_hookÏs 
 
 
zRequestHooksMixin.register_hookcCs2z|j| |¡WdStk
r,YdSXdS)ziDeregister a previously registered hook.
        Returns True if the hook existed, False if not.
        TFN)ruÚremoverVrwr>r>r?Úderegister_hookÚs
z!RequestHooksMixin.deregister_hookN)rjrkrlrzr|r>r>r>r?roÎs roc
@s*eZdZdZd    dd„Zdd„Zdd„ZdS)
ÚRequesta{A user-created :class:`Request <Request>` object.
 
    Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server.
 
    :param method: HTTP method to use.
    :param url: URL to send.
    :param headers: dictionary of headers to send.
    :param files: dictionary of {filename: fileobject} files to multipart upload.
    :param data: the body to attach to the request. If a dictionary or
        list of tuples ``[(key, value)]`` is provided, form-encoding will
        take place.
    :param json: json for the body to attach to the request (if files or data is not specified).
    :param params: URL parameters to append to the URL. If a dictionary or
        list of tuples ``[(key, value)]`` is provided, form-encoding will
        take place.
    :param auth: Auth handler or (user, pass) tuple.
    :param cookies: dictionary or CookieJar of cookies to attach to this request.
    :param hooks: dictionary of callback hooks, for internal usage.
 
    Usage::
 
      >>> import requests
      >>> req = requests.Request('GET', 'https://httpbin.org/get')
      >>> req.prepare()
      <PreparedRequest [GET]>
    Nc Cs¶|dkr gn|}|dkrgn|}|dkr,in|}|dkr<in|}|    dkrLin|    }    tƒ|_t|     ¡ƒD]\} } |j| | dqd||_||_||_||_||_    |
|_
||_ ||_ ||_ dS)N)rxry)r%rurYÚitemsrzÚmethodr7rTr]rJrÚparamsÚauthÚcookies) r<rr7rTr]rJr€rr‚rurrLrNr>r>r?Ú__init__s"zRequest.__init__cCsd|j›dS)Nz
<Request [ú]>©r©r<r>r>r?Ú__repr__%szRequest.__repr__c Cs<tƒ}|j|j|j|j|j|j|j|j|j    |j
|j d
|S)zXConstructs a :class:`PreparedRequest <PreparedRequest>` for transmission and returns it.)
rr7rTr]rJrr€rr‚ru) ÚPreparedRequestÚpreparerr7rTr]rJrr€rr‚ru©r<r=r>r>r?r‰(sö zRequest.prepare)
NNNNNNNNNN)rjrkrlÚ__doc__rƒr‡r‰r>r>r>r?r}æsõ
#r}c
@s‚eZdZdZdd„Zddd„Zdd„Zd    d
„Zd d „Ze    d d„ƒZ
dd„Z dd„Z ddd„Z dd„Zd dd„Zdd„Zdd„ZdS)!rˆa)The fully mutable :class:`PreparedRequest <PreparedRequest>` object,
    containing the exact bytes that will be sent to the server.
 
    Instances are generated from a :class:`Request <Request>` object, and
    should not be instantiated manually; doing so may produce undesirable
    effects.
 
    Usage::
 
      >>> import requests
      >>> req = requests.Request('GET', 'https://httpbin.org/get')
      >>> r = req.prepare()
      >>> r
      <PreparedRequest [GET]>
 
      >>> s = requests.Session()
      >>> s.send(r)
      <Response [200]>
    cCs0d|_d|_d|_d|_d|_tƒ|_d|_dSrq)rr7rTÚ_cookiesrhr%ruÚ_body_positionr†r>r>r?rƒOszPreparedRequest.__init__Nc CsR| |¡| ||¡| |¡| |¡| |||
¡| ||¡| |    ¡dS)z6Prepares the entire request with the given parameters.N)Úprepare_methodÚ prepare_urlÚprepare_headersÚprepare_cookiesÚ prepare_bodyÚ prepare_authÚ prepare_hooks) r<rr7rTr]rJr€rr‚rurr>r>r?r‰`s
 
 
 zPreparedRequest.preparecCsd|j›dS)Nz<PreparedRequest [r„r…r†r>r>r?r‡|szPreparedRequest.__repr__cCsXtƒ}|j|_|j|_|jdk    r*|j ¡nd|_t|jƒ|_|j|_|j|_|j    |_    |Srq)
rˆrr7rTÚcopyrrŒrhrurrŠr>r>r?r•s zPreparedRequest.copycCs$||_|jdk    r t|j ¡ƒ|_dS)zPrepares the given HTTP method.N)rr Úupper)r<rr>r>r?rŽŠs
zPreparedRequest.prepare_methodcCs@ddl}z|j|dd d¡}Wn|jk
r:t‚YnX|S)NrT)Úuts46rC)ÚidnarIrWÚ    IDNAErrorÚ UnicodeError)Úhostr˜r>r>r?Ú_get_idna_encoded_hosts 
z&PreparedRequest._get_idna_encoded_hostc
Cs¨t|tƒr| d¡}nt|ƒ}| ¡}d|krF| ¡ d¡sF||_dSzt|ƒ\}}}}}}}    Wn,t    k
rŒ}
zt
|
j ނW5d}
~
XYnX|s¨t d|›d|›dƒ‚|s¼t
d|›dƒ‚t |ƒsòz| |¡}Wntk
rît
d    ƒ‚YnXn| d
¡rt
d    ƒ‚|pd } | r| d 7} | |7} |r:| d|›7} |sDd }t|ttfƒr\t|ƒ}| |¡} | r†|r‚|›d| ›}n| }tt|| |d||    gƒƒ}||_dS)zPrepares the given HTTP URL.Úutf8ú:ÚhttpNz Invalid URL z0: No scheme supplied. Perhaps you meant https://r5z: No host suppliedzURL has an invalid label.)Ú*Ú.r6ú@r4ú&)rErGrWrFÚlstripÚlowerÚ
startswithr7r
rr"Úargsr#r rœršr rOr.r) r<r7r€Úschemerr›Úportr8r:ÚfragmentÚeÚnetlocÚ
enc_paramsr>r>r?ršsR
 ÿ 
 
zPreparedRequest.prepare_urlcCs<tƒ|_|r8| ¡D]"}t|ƒ|\}}||jt|ƒ<qdS)z Prepares the given HTTP headers.N)r'rTr~r(r )r<rTÚheaderrRÚvaluer>r>r?räs  zPreparedRequest.prepare_headersc    
Cs°d}d}|sn|dk    rnd}ztj|dd}Wn.tk
rX}zt||d‚W5d}~XYnXt|tƒsn| d¡}tt|dƒt|t    t
t t fƒ gƒ}|r6z t |ƒ}Wntttfk
rÀd}YnX|}t|ddƒdk    rz| ¡|_Wntk
rtƒ|_YnX|rtd    ƒ‚|r*t|ƒ|jd
<n
d |jd <np|rN| ||¡\}}n2|r€| |¡}t|t    ƒsvt|d ƒr|d}nd}| |¡|r¦d|jkr¦||jd<||_dS)z"Prepares the given HTTP body data.Nzapplication/jsonF)Ú    allow_nan)ÚrequestrCrBÚtellz1Streamed bodies and files are mutually exclusive.úContent-LengthÚchunkedzTransfer-EncodingrAz!application/x-www-form-urlencodedz content-typez Content-Type)Ú complexjsonÚdumpsrVr!rErGrIÚallrHrrYrXrr0Ú    TypeErrorÚAttributeErrorrÚgetattrr²rÚOSErrorÚobjectÚNotImplementedErrorrrTrirOÚprepare_content_lengthrh)    r<rJr]rrhrUÚveÚ    is_streamÚlengthr>r>r?r’ïsX 
 
þÿ 
ÿ 
 
 
zPreparedRequest.prepare_bodycCsL|dk    r$t|ƒ}|rHt|ƒ|jd<n$|jdkrH|j d¡dkrHd|jd<dS)z>Prepare Content-Length header based on request method and bodyNr³)ÚGETÚHEADÚ0)r0rrTrÚget)r<rhrÁr>r>r?r¾=sÿþz&PreparedRequest.prepare_content_lengthr6cCsj|dkr"t|jƒ}t|ƒr|nd}|rft|tƒrDt|ƒdkrDt|Ž}||ƒ}|j |j¡|     |j
¡dS)z"Prepares the given HTTP auth data.NrP) r)r7ÚanyrErXrZrÚ__dict__Úupdater¾rh)r<rr7Úurl_authÚrr>r>r?r“Ms
zPreparedRequest.prepare_authcCs@t|tjƒr||_n
t|ƒ|_t|j|ƒ}|dk    r<||jd<dS)aPrepares the given HTTP cookie data.
 
        This function eventually generates a ``Cookie`` header from the
        given cookies using cookielib. Due to cookielib's design, the header
        will not be regenerated if it already exists, meaning this function
        can only be called once for the life of the
        :class:`PreparedRequest <PreparedRequest>` object. Any subsequent calls
        to ``prepare_cookies`` will have no actual effect, unless the "Cookie"
        header is removed beforehand.
        NÚCookie)rErÚ    CookieJarrŒrrrT)r<r‚Ú cookie_headerr>r>r?r‘cs 
 zPreparedRequest.prepare_cookiescCs&|pg}|D]}| |||¡q dS)zPrepares the given hooks.N)rz)r<rurxr>r>r?r”wszPreparedRequest.prepare_hooks)
NNNNNNNNNN)N)r6)rjrkrlr‹rƒr‰r‡r•rŽrnrœrrr’r¾r“r‘r”r>r>r>r?rˆ:s2õ
 
    J
N
rˆc
@seZdZdZdddddddd    d
d g
Zd d „Zdd„Zdd„Zdd„Zdd„Z    dd„Z
dd„Z dd„Z dd„Z edd„ƒZed d!„ƒZed"d#„ƒZed$d%„ƒZed&d'„ƒZd;d*d+„Zed)d,fd-d.„Zed/d0„ƒZed1d2„ƒZd3d4„Zed5d6„ƒZd7d8„Zd9d:„Zd,S)<ÚResponsezhThe :class:`Response <Response>` object, which contains a
    server's response to an HTTP request.
    Ú_contentÚ status_coderTr7ÚhistoryÚencodingÚreasonr‚Úelapsedr±cCs^d|_d|_d|_d|_tƒ|_d|_d|_d|_g|_    d|_
t iƒ|_ t  d¡|_d|_dS)NFr)rÏÚ_content_consumedÚ_nextrÐr'rTÚrawr7rÒrÑrÓrr‚ÚdatetimeÚ    timedeltarÔr±r†r>r>r?rƒ“s
 zResponse.__init__cCs|Srqr>r†r>r>r?Ú    __enter__ÂszResponse.__enter__cGs | ¡dSrq)Úclose)r<r§r>r>r?Ú__exit__ÅszResponse.__exit__cs ˆjs ˆj‡fdd„ˆjDƒS)Ncsi|]}|tˆ|dƒ“qSrq)rº)rrÚattrr†r>r?Ú
<dictcomp>Îsz)Response.__getstate__.<locals>.<dictcomp>)rÕÚcontentÚ    __attrs__r†r>r†r?Ú __getstate__ÈszResponse.__getstate__cCs:| ¡D]\}}t|||ƒqt|ddƒt|ddƒdS)NrÕTr×)r~Úsetattr)r<ÚstaterRr¯r>r>r?Ú __setstate__Ðs zResponse.__setstate__cCsd|j›dS)Nz <Response [r„)rÐr†r>r>r?r‡ØszResponse.__repr__cCs|jS©akReturns True if :attr:`status_code` is less than 400.
 
        This attribute checks if the status code of the response is between
        400 and 600 to see if there was a client error or a server error. If
        the status code, is between 200 and 400, this will return True. This
        is **not** a check to see if the response code is ``200 OK``.
        ©Úokr†r>r>r?Ú__bool__ÛszResponse.__bool__cCs|jSrårær†r>r>r?Ú __nonzero__åszResponse.__nonzero__cCs
| d¡S)z,Allows you to use a response as an iterator.é€)Ú iter_contentr†r>r>r?rBïszResponse.__iter__cCs(z | ¡Wntk
r"YdSXdS)axReturns True if :attr:`status_code` is less than 400, False if not.
 
        This attribute checks if the status code of the response is between
        400 and 600 to see if there was a client error or a server error. If
        the status code is between 200 and 400, this will return True. This
        is **not** a check to see if the response code is ``200 OK``.
        FT)Úraise_for_statusr r†r>r>r?rçós
     z Response.okcCsd|jko|jtkS)zšTrue if this Response is a well-formed HTTP redirect that could have
        been processed automatically (by :meth:`Session.resolve_redirects`).
        Úlocation)rTrÐÚREDIRECT_STATIr†r>r>r?Ú is_redirectszResponse.is_redirectcCsd|jko|jtjtjfkS)z@True if this Response one of the permanent versions of redirect.rí)rTrÐr&Úmoved_permanentlyÚpermanent_redirectr†r>r>r?Úis_permanent_redirect    sþzResponse.is_permanent_redirectcCs|jS)zTReturns a PreparedRequest for the next request in a redirect chain, if there is one.)rÖr†r>r>r?Únextsz Response.nextcCst |j¡dS)zOThe apparent encoding, provided by the charset_normalizer or chardet libraries.rÒ)rÚdetectrßr†r>r>r?Úapparent_encodingszResponse.apparent_encodingr Fcs€‡‡fdd„}ˆjr(tˆjtƒr(tƒ‚n&ˆdk    rNtˆtƒsNtdtˆƒ›dƒ‚tˆjˆƒ}|ƒ}ˆjrj|n|}|r|t    |ˆƒ}|S)aøIterates over the response data.  When stream=True is set on the
        request, this avoids reading the content at once into memory for
        large responses.  The chunk size is the number of bytes it should
        read into memory.  This is not necessarily the length of each item
        returned as decoding can take place.
 
        chunk_size must be of type int or None. A value of None will
        function differently depending on the value of `stream`.
        stream=True will read data as it arrives in whatever size the
        chunks are received. If stream=False, data is returned as
        a single chunk.
 
        If decode_unicode is True, content will be decoded using the best
        available encoding based on the response.
        c
3sðtˆjdƒrÌzˆjjˆddEdHWqætk
rP}z t|ƒ‚W5d}~XYqætk
rx}z t|ƒ‚W5d}~XYqætk
r }z t|ƒ‚W5d}~XYqæt    k
rÈ}z t
|ƒ‚W5d}~XYqæXnˆj  ˆ¡}|sÞqæ|VqÌdˆ_ dS)NÚstreamT)Údecode_content) rHr×rörrrrrrrÚRequestsSSLErrorrArÕ)r«Úchunk©Ú
chunk_sizer<r>r?Úgenerate,s   z'Response.iter_content.<locals>.generateNz+chunk_size must be an int, it is instead a r¡)
rÕrErÏÚboolr$Úintr¸Útyper,r/)r<rûÚdecode_unicoderüÚ reused_chunksÚ stream_chunksÚchunksr>rúr?rësÿ 
zResponse.iter_contentNccsŽd}|j||dD]h}|dk    r&||}|r6| |¡}n| ¡}|rl|drl|rl|dd|dkrl| ¡}nd}|EdHq|dk    rŠ|VdS)zõIterates over the response data, one line at a time.  When
        stream=True is set on the request, this avoids reading the
        content at once into memory for large responses.
 
        .. note:: This method is not reentrant safe.
        N)rûréÿÿÿÿ)rëÚsplitÚ
splitlinesÚpop)r<rûrÚ    delimiterÚpendingrùÚlinesr>r>r?Ú
iter_linesUs 
ÿ
 $
 zResponse.iter_linescCsV|jdkrJ|jrtdƒ‚|jdks,|jdkr4d|_nd | t¡¡pFd|_d|_|jS)z"Content of the response, in bytes.Fz2The content for this response was already consumedrNóT)rÏrÕÚ RuntimeErrorrÐr×r;rëÚCONTENT_CHUNK_SIZEr†r>r>r?rßws
zResponse.contentc    Csdd}|j}|jsdS|jdkr$|j}zt|j|dd}Wn&ttfk
r^t|jdd}YnX|S)aÚContent of the response, in unicode.
 
        If Response.encoding is None, encoding will be guessed using
        ``charset_normalizer`` or ``chardet``.
 
        The encoding of the response content is determined based solely on HTTP
        headers, following RFC 2616 to the letter. If you can take advantage of
        non-HTTP knowledge to make a better guess at the encoding, you should
        set ``r.encoding`` appropriately before accessing this property.
        Nr6Úreplace)Úerrors)rÒrßrõrFÚ LookupErrorr¸)r<rßrÒr>r>r?ÚtextŠs
z Response.textc
KsØ|jsŒ|jrŒt|jƒdkrŒt|jƒ}|dk    rŒztj|j |¡f|ŽWStk
rXYn4tk
rŠ}zt    |j
|j |j ƒ‚W5d}~XYnXztj|j f|ŽWStk
rÒ}zt    |j
|j |j ƒ‚W5d}~XYnXdS)zýReturns the json-encoded content of a response, if any.
 
        :param \*\*kwargs: Optional arguments that ``json.loads`` takes.
        :raises requests.exceptions.JSONDecodeError: If the response body does not
            contain valid json.
        rQN)rÒrßrZr+rµÚloadsrWÚUnicodeDecodeErrorrÚRequestsJSONDecodeErrorÚmsgÚdocÚposr)r<ÚkwargsrÒr«r>r>r?r°s
$z Response.jsoncCsF|j d¡}i}|rBt|ƒ}|D] }| d¡p6| d¡}|||<q |S)z8Returns the parsed header links of the response, if any.ÚlinkÚrelr7)rTrÅr-)r<r®Zresolved_linksÚlinksrÚkeyr>r>r?rÑs 
zResponse.linkscCsÄd}t|jtƒrDz|j d¡}WqJtk
r@|j d¡}YqJXn|j}d|jkr`dkr~nn|j›d|›d|j›}n2d|jkr”dkr°nn|j›d    |›d|j›}|rÀt||d
‚d S) z+Raises :class:`HTTPError`, if one occurred.r6rCz
iso-8859-1iiôz Client Error: z
 for url: iXz Server Error: )ÚresponseN)rErÓrGrWrrÐr7r )r<Úhttp_error_msgrÓr>r>r?rìâs ÿÿzResponse.raise_for_statuscCs0|js|j ¡t|jddƒ}|dk    r,|ƒdS)zØReleases the connection back to the pool. Once this method has been
        called the underlying ``raw`` object must not be accessed again.
 
        *Note: Should not normally need to be called explicitly.*
        Ú release_connN)rÕr×rÛrº)r<r r>r>r?rÛÿs
 
zResponse.close)r F)rjrkrlr‹ràrƒrÚrÜrárär‡rèrérBrmrçrïròrórõrëÚITER_CHUNK_SIZEr rßrrrrìrÛr>r>r>r?r΁sZö /
 
 
 
 
 
 
 
;ÿ
"
 
%!
rÎ)Rr‹rØÚencodings.idnaÚ    encodingsÚiorZurllib3.exceptionsrrrrrZurllib3.fieldsrZurllib3.filepostr    Z urllib3.utilr
Ú_internal_utilsr r rrÚcompatrrrrrrrrrµrrrr‚rrrÚ
exceptionsrrrr r!r"rr#rør$rur%Ú status_codesr&Ú
structuresr'Úutilsr(r)r*r+r,r-r.r/r0r1ÚmovedÚfoundÚotherÚtemporary_redirectrñrîÚDEFAULT_REDIRECT_LIMITrr!r3ror}rˆrÎr>r>r>r?Ú<module>sL     $             0ûzTI