class documentation
class AsyncClient(ClientMixin, AsyncRequestFactory): (source)
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 |
Make a generic request. Compose the scope dictionary and pass to the handler, return the result of the handler. Assume defaults for the query environment, which can be overridden using the arguments to the request. |
Instance Variable | exc |
Undocumented |
Instance Variable | extra |
Undocumented |
Instance Variable | handler |
Undocumented |
Instance Variable | raise |
Undocumented |
Inherited from ClientMixin
:
Method | check |
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 |
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 |
Store exceptions when they are generated by a view. |
Instance Variable | cookies |
Undocumented |
Property | session |
Return the current session variables. |
Method | _login |
Undocumented |
Method | _parse |
Undocumented |
Inherited from AsyncRequestFactory
(via ClientMixin
):
Method | generic |
Construct an arbitrary HTTP request. |
Method | _base |
The base scope for a request. |
Inherited from RequestFactory
(via ClientMixin
, AsyncRequestFactory
):
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 | defaults |
Undocumented |
Instance Variable | errors |
Undocumented |
Instance Variable | json |
Undocumented |
Method | _base |
The base environment for a request. |
Method | _encode |
Undocumented |
Method | _encode |
Return encoded JSON if data is a dict, list, or tuple and content_type is application/json. |
Method | _get |
Undocumented |