class documentation
class ClientHandler(BaseHandler): (source)
An HTTP Handler that can be used for testing purposes. Use the WSGI interface to compose requests, but return the raw HttpResponse object with the originating WSGIRequest attached to its ``wsgi_request`` attribute.
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Instance Variable | enforce |
Undocumented |
Inherited from BaseHandler
:
Method | adapt |
Adapt a method to be in the correct "mode": - If is_async is False: - Synchronous methods are left alone - Asynchronous methods are wrapped with async_to_sync - If is_async is True: - Synchronous methods are wrapped with sync_to_async() - Asynchronous methods are left alone... |
Method | check |
Raise an error if the view returned None or an uncalled coroutine. |
Method | get |
Return an HttpResponse object for the given HttpRequest. |
Async Method | get |
Asynchronous version of get_response. |
Method | load |
Populate middleware lists from settings.MIDDLEWARE. |
Method | make |
Undocumented |
Method | process |
Pass the exception to the exception middleware. If no middleware return a response for this exception, return None. |
Method | resolve |
Retrieve/set the urlconf for the request. Return the view resolved, with its args and kwargs. |
Method | _get |
Resolve and call the view, then apply view, exception, and template_response middleware. This method is everything that happens inside the request/response middleware. |
Async Method | _get |
Resolve and call the view, then apply view, exception, and template_response middleware. This method is everything that happens inside the request/response middleware. |
Instance Variable | _exception |
Undocumented |
Instance Variable | _middleware |
Undocumented |
Instance Variable | _template |
Undocumented |
Instance Variable | _view |
Undocumented |