class documentation

Common methods used by WSGI and ASGI handlers.

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
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)
def file_path(self, url): (source)

Return the relative path to the media file on disk for the given URL.

def get_base_url(self): (source)

Undocumented

def get_response(self, request): (source)

Undocumented

async def get_response_async(self, request): (source)

Undocumented

def load_middleware(self): (source)

Undocumented

def serve(self, request): (source)

Serve the request path.

handles_files: bool = (source)

Undocumented

def _should_handle(self, path): (source)

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)