Files
aitsc/.venv/Lib/site-packages/httpx/__pycache__/_api.cpython-312.pyc

166 lines
10 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
2025-08-29 00:34:40 +08:00
<00><19>h<EFBFBD>-<00><01><><00>ddlmZddlZddlmZddlmZddlmZddl m
2025-02-23 09:07:52 +08:00
Z
ddl m Z m Z mZmZmZmZmZmZmZdd lmZej.rddlZgd
<EFBFBD>Zddddddddded d d d <0A> dd<0E>Zeddddddddded d d d <0A> dd<0F><06>Zdddddd d ed d<10> dd<11>Zdddddd d ed d<10> dd<12>Zdddddd d ed d<10> dd<13>Zdddddddddd d ed d<14> dd<15>Zdddddddddd d ed d<14> dd<16>Z dddddddddd d ed d<14> dd<17>Z!dddddd ed d d<18> dd<19>Z"y)<1F>)<01> annotationsN)<01>contextmanager<65>)<01>Client)<01>DEFAULT_TIMEOUT_CONFIG)<01>Response) <09> AuthTypes<65> CookieTypes<65> HeaderTypes<65>
ProxyTypes<EFBFBD>QueryParamTypes<65>RequestContent<6E> RequestData<74> RequestFiles<65> TimeoutTypes)<01>URL) <09>delete<74>get<65>head<61>options<6E>patch<63>post<73>put<75>request<73>streamFT) <0A>params<6D>content<6E>data<74>files<65>json<6F>headers<72>cookies<65>auth<74>proxy<78>timeout<75>follow_redirects<74>verify<66> trust_envc <01><><00>t||
| | |<0E><01>5}|j||||||||| | <0C><02>
cddd<03>S#1swYyxYw)a
Sends an HTTP request.
**Parameters:**
* **method** - HTTP method for the new `Request` object: `GET`, `OPTIONS`,
`HEAD`, `POST`, `PUT`, `PATCH`, or `DELETE`.
* **url** - URL for the new `Request` object.
* **params** - *(optional)* Query parameters to include in the URL, as a
string, dictionary, or sequence of two-tuples.
* **content** - *(optional)* Binary content to include in the body of the
request, as bytes or a byte iterator.
* **data** - *(optional)* Form data to include in the body of the request,
as a dictionary.
* **files** - *(optional)* A dictionary of upload files to include in the
body of the request.
* **json** - *(optional)* A JSON serializable object to include in the body
of the request.
* **headers** - *(optional)* Dictionary of HTTP headers to include in the
request.
* **cookies** - *(optional)* Dictionary of Cookie items to include in the
request.
* **auth** - *(optional)* An authentication class to use when sending the
request.
* **proxy** - *(optional)* A proxy URL where all the traffic should be routed.
* **timeout** - *(optional)* The timeout configuration to use when sending
the request.
* **follow_redirects** - *(optional)* Enables or disables HTTP redirects.
* **verify** - *(optional)* Either `True` to use an SSL context with the
default CA bundle, `False` to disable verification, or an instance of
`ssl.SSLContext` to use a custom context.
* **trust_env** - *(optional)* Enables or disables usage of environment
variables for configuration.
**Returns:** `Response`
Usage:
```
>>> import httpx
>>> response = httpx.request('GET', 'https://httpbin.org/get')
>>> response
<Response [200 OK]>
```
<20>r"r$r'r%r(<00>
2025-08-29 00:34:40 +08:00
<EFBFBD>method<6F>urlrrrr rr!r#r&N)rr)r,r-rrrrr r!r"r#r$r%r&r'r(<00>clients <20>7D:\pythonpj\aitsc\.venv\Lib\site-packages\httpx/_api.pyrr's`<00><00>~
2025-02-23 09:07:52 +08:00
<10><17><13><15><17><1B> 
<06>
<10><15>~<7E>~<7E><19><13><1B><15><17><15><19><1B><15>-<2D><1E> 
<EFBFBD>
<06>
<06>
<06>s<00>6<03>?c #<01><>K<00>t||
| | |<0E><01>5}|j||||||||| | <0C><02>
5}|<10><03>ddd<03>ddd<03>y#1swY<00>xYw#1swYyxYw<01>w)z<>
Alternative to `httpx.request()` that streams the response body
instead of loading it into memory at once.
**Parameters**: See `httpx.request`.
See also: [Streaming Responses][0]
[0]: /quickstart#streaming-responses
r*r+N)rr)r,r-rrrrr r!r"r#r$r%r&r'r(r.<00>responses r/rr{s<><00><00><><00>:
<10><17><13><15><17><1B> 
<06>
<10> <13>]<5D>]<5D><19><13><1B><15><17><15><19><1B><15>-<2D><1B> 
<EFBFBD><16><1A>N<EFBFBD> 
<EFBFBD>
<06>
<06> 
<EFBFBD> 
<EFBFBD><EFBFBD>
<06>
<06>s1<00>A<01>A<03>A<05>A<03> A<01>A <09>
A<03>A<07>A<01> rr!r"r#r$r&r'r%r(c <01>.<00>td|||||||||| <09><02> S)z<>
Sends a `GET` request.
**Parameters**: See `httpx.request`.
Note that the `data`, `files`, `json` and `content` parameters are not available
on this function, as `GET` requests should not include a request body.
<20>GETr2<00>r<00>
r-rr!r"r#r$r&r'r%r(s
r/rr<00>s2<00><00>* <13> <0A> <0B><15><17><17> <11><13>)<29><15><17><1B> <06> <06>c <01>.<00>td|||||||||| <09><02> S)z<>
Sends an `OPTIONS` request.
**Parameters**: See `httpx.request`.
Note that the `data`, `files`, `json` and `content` parameters are not available
on this function, as `OPTIONS` requests should not include a request body.
<20>OPTIONSr2r5r6s
r/rr<00>s2<00><00>* <13><11> <0B><15><17><17> <11><13>)<29><15><17><1B> <06> r7c <01>.<00>td|||||||||| <09><02> S)z<>
Sends a `HEAD` request.
**Parameters**: See `httpx.request`.
Note that the `data`, `files`, `json` and `content` parameters are not available
on this function, as `HEAD` requests should not include a request body.
<20>HEADr2r5r6s
r/rr<00>s2<00><00>* <13><0E> <0B><15><17><17> <11><13>)<29><15><17><1B> <06> r7<00> rrrr rr!r"r#r$r&r'r%r(c <01>6<00>td|||||||||| |
| | | <0A><02>S)zK
Sends a `POST` request.
**Parameters**: See `httpx.request`.
<20>POSTr<r5<00>r-rrrr rr!r"r#r$r&r'r%r(s r/rrs><00><00>, <13><0E> <0B><17> <11><13> <11><15><17><17> <11><13>)<29><15><17><1B> <06>r7c <01>6<00>td|||||||||| |
| | | <0A><02>S)zJ
Sends a `PUT` request.
**Parameters**: See `httpx.request`.
<20>PUTr<r5r?s r/rrCs><00><00>, <13> <0A> <0B><17> <11><13> <11><15><17><17> <11><13>)<29><15><17><1B> <06>r7c <01>6<00>td|||||||||| |
| | | <0A><02>S)zL
Sends a `PATCH` request.
**Parameters**: See `httpx.request`.
<20>PATCHr<r5r?s r/rrls><00><00>, <13><0F> <0B><17> <11><13> <11><15><17><17> <11><13>)<29><15><17><1B> <06>r7) rr!r"r#r$r&r%r'r(c <01>.<00>td|||||||||| <09><02> S)z<>
Sends a `DELETE` request.
**Parameters**: See `httpx.request`.
Note that the `data`, `files`, `json` and `content` parameters are not available
on this function, as `DELETE` requests should not include a request body.
<20>DELETEr2r5)
r-rr!r"r#r$r&r%r'r(s
r/rr<00>s2<00><00>* <13><10> <0B><15><17><17> <11><13>)<29><15><17><1B> <06> r7) r,<00>strr-<00> URL | strr<00>QueryParamTypes | Noner<00>RequestContent | Noner<00>RequestData | Noner<00>RequestFiles | Noner <00>typing.Any | Noner!<00>HeaderTypes | Noner"<00>CookieTypes | Noner#<00>AuthTypes | Noner$<00>ProxyTypes | Noner%rr&<00>boolr'<00>ssl.SSLContext | str | boolr(rQ<00>returnr) r,rFr-rGrrHrrIrrJrrKr rLr!rMr"rNr#rOr$rPr%rr&rQr'rRr(rQrSztyping.Iterator[Response])r-rGrrHr!rMr"rNr#rOr$rPr&rQr'rRr%rr(rQrSr)r-rGrrIrrJrrKr rLrrHr!rMr"rNr#rOr$rPr&rQr'rRr%rr(rQrSr)r-rGrrHr!rMr"rNr#rOr$rPr&rQr%rr'rRr(rQrSr)#<23>
__future__r<00>typing<6E>
contextlibr<00>_clientr<00>_configr<00>_modelsr<00>_typesr r
r r r rrrr<00>_urlsr<00> TYPE_CHECKING<4E>ssl<73>__all__rrrrrrrrr<00>r7r/<00><module>r`sx<00><01>"<22> <0A>%<25><1B>+<2B><1D>
<02>
<02>
<02><17> <09><17><17><0E>
<02><07>"&*<2A>%)<29>#<23>!%<25>"<22>"&<26>"&<26>!<21>#<23>2<>"<22>*.<2E><1A>!Q
<EFBFBD> <0F>Q
<EFBFBD> <12>Q
<EFBFBD> #<23> Q
<EFBFBD>
#<23> Q
<EFBFBD> <1D> Q
<EFBFBD> <1F>Q
<EFBFBD> <1C>Q
<EFBFBD> <20>Q
<EFBFBD> <20>Q
<EFBFBD> <1B>Q
<EFBFBD> <1D>Q
<EFBFBD><1A>Q
<EFBFBD><1B>Q
<EFBFBD> (<28>Q
<EFBFBD> <14>!Q
<EFBFBD>"<0E>#Q
<EFBFBD>h<10>
&*<2A>%)<29>#<23>!%<25>"<22>"&<26>"&<26>!<21>#<23>2<>"<22>*.<2E><1A>!/<1B> <0F>/<1B> <12>/<1B> #<23> /<1B>
#<23> /<1B> <1D> /<1B> <1F>/<1B> <1C>/<1B> <20>/<1B> <20>/<1B> <1B>/<1B> <1D>/<1B><1A>/<1B><1B>/<1B> (<28>/<1B> <14>!/<1B>"<1F>#/<1B><10>/<1B>j&*<2A>"&<26>"&<26>!<21>#<23>"<22>*.<2E>2<><1A>!<06> <12>!<06> #<23>!<06> <20> !<06>
 <20> !<06> <1B> !<06> <1D>!<06><1B>!<06> (<28>!<06><1A>!<06><14>!<06><0E>!<06>N&*<2A>"&<26>"&<26>!<21>#<23>"<22>*.<2E>2<><1A>!<06> <12>!<06> #<23>!<06> <20> !<06>
 <20> !<06> <1B> !<06> <1D>!<06><1B>!<06> (<28>!<06><1A>!<06><14>!<06><0E>!<06>N&*<2A>"&<26>"&<26>!<21>#<23>"<22>*.<2E>2<><1A>!<06> <12>!<06> #<23>!<06> <20> !<06>
 <20> !<06> <1B> !<06> <1D>!<06><1B>!<06> (<28>!<06><1A>!<06><14>!<06><0E>!<06>N&*<2A>#<23>!%<25>"<22>%)<29>"&<26>"&<26>!<21>#<23>"<22>*.<2E>2<><1A>&<06> <12>&<06>#<23>&<06> <1D> &<06>
<1F> &<06> <1C> &<06> #<23>&<06> <20>&<06> <20>&<06> <1B>&<06> <1D>&<06><1B>&<06> (<28>&<06><1A>&<06><14>&<06> <0E>!&<06>X&*<2A>#<23>!%<25>"<22>%)<29>"&<26>"&<26>!<21>#<23>"<22>*.<2E>2<><1A>&<06> <12>&<06>#<23>&<06> <1D> &<06>
<1F> &<06> <1C> &<06> #<23>&<06> <20>&<06> <20>&<06> <1B>&<06> <1D>&<06><1B>&<06> (<28>&<06><1A>&<06><14>&<06> <0E>!&<06>X&*<2A>#<23>!%<25>"<22>%)<29>"&<26>"&<26>!<21>#<23>"<22>*.<2E>2<><1A>&<06> <12>&<06>#<23>&<06> <1D> &<06>
<1F> &<06> <1C> &<06> #<23>&<06> <20>&<06> <20>&<06> <1B>&<06> <1D>&<06><1B>&<06> (<28>&<06><1A>&<06><14>&<06> <0E>!&<06>X&*<2A>"&<26>"&<26>!<21>#<23>"<22>2<>*.<2E><1A>!<06> <12>!<06> #<23>!<06> <20> !<06>
 <20> !<06> <1B> !<06> <1D>!<06><1B>!<06><1A>!<06> (<28>!<06><14>!<06><0E>!r7