class AsyncClient(ClientMixin, AsyncRequestFactory):
An async version of Client that creates ASGIRequests and calls through an async request path.
Does not currently support "follow" on its methods.
Method | __init__ |
Undocumented |
Async Method | request |
No summary |
Instance Variable | exc_info |
Undocumented |
Instance Variable | extra |
Undocumented |
Instance Variable | handler |
Undocumented |
Instance Variable | raise_request_exception |
Undocumented |
Inherited from ClientMixin
:
Method | _login |
Undocumented |
Method | _parse_json |
Undocumented |
Method | check_exception |
Look for a signaled exception, clear the current context exception data, re-raise the signaled exception, and clear the signaled exception from the local cache. |
Method | force_login |
Undocumented |
Method | login |
Set the Factory to appear as if it has successfully logged into a site. |
Method | logout |
Log out the user by removing the cookies and session object. |
Method | store_exc_info |
Store exceptions when they are generated by a view. |
Instance Variable | cookies |
Undocumented |
Property | session |
Return the current session variables. |
Inherited from AsyncRequestFactory
:
Method | _base_scope |
The base scope for a request. |
Method | generic |
Construct an arbitrary HTTP request. |
Inherited from RequestFactory
(via AsyncRequestFactory
):
Method | _base_environ |
The base environment for a request. |
Method | _encode_data |
Undocumented |
Method | _encode_json |
Return encoded JSON if data is a dict, list, or tuple and content_type is application/json. |
Method | _get_path |
Undocumented |
Method | delete |
Construct a DELETE request. |
Method | get |
Construct a GET request. |
Method | head |
Construct a HEAD request. |
Method | options |
Construct an OPTIONS request. |
Method | patch |
Construct a PATCH request. |
Method | post |
Construct a POST request. |
Method | put |
Construct a PUT request. |
Method | trace |
Construct a TRACE request. |
Instance Variable | cookies |
Undocumented |
Instance Variable | defaults |
Undocumented |
Instance Variable | errors |
Undocumented |
Instance Variable | json_encoder |
Undocumented |
Undocumented