class documentation

class AsyncClient(ClientMixin, AsyncRequestFactory):

View In Hierarchy

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
def __init__(self, enforce_csrf_checks=False, raise_request_exception=True, **defaults):
async def request(self, **request):
The master request method. 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.
exc_info =
extra =

Undocumented

handler =

Undocumented

raise_request_exception =

Undocumented