Undocumented
Method | __init__ |
Undocumented |
Method | auth |
Undocumented |
Method | base |
Undocumented |
Method | build |
Build and return a request instance. |
Method | cookies |
Undocumented |
Method | event |
Undocumented |
Method | headers |
Undocumented |
Method | params |
Undocumented |
Method | timeout |
Undocumented |
Instance Variable | follow |
Undocumented |
Instance Variable | max |
Undocumented |
Property | auth |
Authentication class used when none is passed at the request-level. |
Property | base |
Base URL to use when sending requests with relative URLs. |
Property | cookies |
Cookie values to include when sending requests. |
Property | event |
Undocumented |
Property | headers |
HTTP headers to include when sending requests. |
Property | is |
Check if the client being closed |
Property | params |
Query parameters to include in the URL when sending requests. |
Property | timeout |
Undocumented |
Property | trust |
Undocumented |
Method | _build |
Undocumented |
Method | _build |
Given a request and a redirect response, return a new request that should be used to effect the redirect. |
Method | _build |
Undocumented |
Method | _enforce |
Undocumented |
Method | _get |
Undocumented |
Method | _merge |
Merge a cookies argument together with any cookies on the client, to create the cookies used for the outgoing request. |
Method | _merge |
Merge a headers argument together with any headers on the client, to create the headers used for the outgoing request. |
Method | _merge |
Merge a queryparams argument together with any queryparams on the client, to create the queryparams used for the outgoing request. |
Method | _merge |
Merge a URL argument together with any 'base_url' on the client, to create the URL used for the outgoing request. |
Method | _redirect |
Return the headers that should be used for the redirect request. |
Method | _redirect |
When being redirected we may want to change the method of the request based on certain specs or browser behavior. |
Method | _redirect |
Return the body that should be used for the redirect request. |
Method | _redirect |
Return the URL for the redirect to follow. |
Instance Variable | _auth |
Undocumented |
Instance Variable | _base |
Undocumented |
Instance Variable | _cookies |
Undocumented |
Instance Variable | _default |
Undocumented |
Instance Variable | _event |
Undocumented |
Instance Variable | _headers |
Undocumented |
Instance Variable | _netrc |
Undocumented |
Instance Variable | _params |
Undocumented |
Instance Variable | _state |
Undocumented |
Instance Variable | _timeout |
Undocumented |
Instance Variable | _trust |
Undocumented |
httpx.AsyncClient
, httpx.Client
Undocumented
Parameters | |
auth:typing.Optional[ | Undocumented |
params:typing.Optional[ | Undocumented |
headers:typing.Optional[ | Undocumented |
cookies:typing.Optional[ | Undocumented |
timeout:TimeoutTypes | Undocumented |
followbool | Undocumented |
maxint | Undocumented |
eventtyping.Optional[ | Undocumented |
baseURLTypes | Undocumented |
trustbool | Undocumented |
defaulttyping.Union[ | Undocumented |
Build and return a request instance. * The `params`, `headers` and `cookies` arguments are merged with any values set on the client. * The `url` argument is merged with any `base_url` set on the client. See also: [Request instances][0] [0]: /advanced/#request-instances
Parameters | |
method:str | Undocumented |
url:URLTypes | Undocumented |
content:typing.Optional[ | Undocumented |
data:typing.Optional[ | Undocumented |
files:typing.Optional[ | Undocumented |
json:typing.Optional[ | Undocumented |
params:typing.Optional[ | Undocumented |
headers:typing.Optional[ | Undocumented |
cookies:typing.Optional[ | Undocumented |
timeout:typing.Union[ | Undocumented |
extensions:typing.Optional[ | Undocumented |
Returns | |
Request | Undocumented |
Authentication class used when none is passed at the request-level. See also [Authentication][0]. [0]: /quickstart/#authentication
Undocumented
Parameters | |
auth:typing.Optional[ | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
Given a request and a redirect response, return a new request that should be used to effect the redirect.
Parameters | |
request:Request | Undocumented |
response:Response | Undocumented |
Returns | |
Request | Undocumented |
Undocumented
Parameters | |
request:Request | Undocumented |
auth:typing.Union[ | Undocumented |
Returns | |
Auth | Undocumented |
Undocumented
Parameters | |
proxies:typing.Optional[ | Undocumented |
allowbool | Undocumented |
Returns | |
typing.Dict[ | Undocumented |
Merge a cookies argument together with any cookies on the client, to create the cookies used for the outgoing request.
Parameters | |
cookies:typing.Optional[ | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
Merge a headers argument together with any headers on the client, to create the headers used for the outgoing request.
Parameters | |
headers:typing.Optional[ | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
Merge a queryparams argument together with any queryparams on the client, to create the queryparams used for the outgoing request.
Parameters | |
params:typing.Optional[ | Undocumented |
Returns | |
typing.Optional[ | Undocumented |
Merge a URL argument together with any 'base_url' on the client, to create the URL used for the outgoing request.
Parameters | |
url:URLTypes | Undocumented |
Returns | |
URL | Undocumented |
Return the headers that should be used for the redirect request.
Parameters | |
request:Request | Undocumented |
url:URL | Undocumented |
method:str | Undocumented |
Returns | |
Headers | Undocumented |
When being redirected we may want to change the method of the request based on certain specs or browser behavior.
Parameters | |
request:Request | Undocumented |
response:Response | Undocumented |
Returns | |
str | Undocumented |
Return the body that should be used for the redirect request.
Parameters | |
request:Request | Undocumented |
method:str | Undocumented |
Returns | |
typing.Optional[ | Undocumented |