class ASGIStaticFilesHandler(StaticFilesHandlerMixin, ASGIHandler):
Async Method | __call__ |
Async entrypoint - parses the request and hands off to get_response. |
Method | __init__ |
Undocumented |
Instance Variable | application |
Undocumented |
Instance Variable | base_url |
Undocumented |
Inherited from StaticFilesHandlerMixin
:
Method | _should_handle |
Check if the path should be handled. Ignore the path if: * the host is provided as part of the base_url * the request's path isn't under the media path (or equal) |
Method | file_path |
Return the relative path to the media file on disk for the given URL. |
Method | get_base_url |
Undocumented |
Method | get_response |
Undocumented |
Async Method | get_response_async |
Undocumented |
Method | load_middleware |
Undocumented |
Method | serve |
Serve the request path. |
Class Variable | handles_files |
Undocumented |
Inherited from ASGIHandler
:
Class Method | chunk_bytes |
Chunks some data up so it can be sent in reasonable size messages. Yields (chunk, last_chunk) tuples. |
Method | create_request |
Create the Request object and returns either (request, None) or (None, response) if there is an error response. |
Method | get_script_prefix |
Return the script prefix to use from either the scope or a setting. |
Async Method | handle |
Handles the ASGI request. Called via the __call__ method. |
Method | handle_uncaught_exception |
Last-chance handler for exceptions. |
Async Method | read_body |
Reads an HTTP body from an ASGI connection. |
Async Method | send_response |
Encode and send a response out over ASGI. |
Class Variable | chunk_size |
Undocumented |
Inherited from BaseHandler
(via ASGIHandler
):
Method | _get_response |
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_response_async |
Resolve and call the view, then apply view, exception, and template_response middleware. This method is everything that happens inside the request/response middleware. |
Method | adapt_method_mode |
No summary |
Method | check_response |
Raise an error if the view returned None or an uncalled coroutine. |
Method | get_response |
Return an HttpResponse object for the given HttpRequest. |
Async Method | get_response_async |
Asynchronous version of get_response. |
Method | load_middleware |
Populate middleware lists from settings.MIDDLEWARE. |
Method | make_view_atomic |
Undocumented |
Method | process_exception_by_middleware |
Pass the exception to the exception middleware. If no middleware return a response for this exception, return None. |
Method | resolve_request |
Retrieve/set the urlconf for the request. Return the view resolved, with its args and kwargs. |
Instance Variable | _exception_middleware |
Undocumented |
Instance Variable | _middleware_chain |
Undocumented |
Instance Variable | _template_response_middleware |
Undocumented |
Instance Variable | _view_middleware |
Undocumented |