handy_httpd.handlers.file_resolving_handler

This module defines the FileResolvingHandler, which is a pre-built handler you can use to easily serve static file content from a directory.

Members

Classes

FileResolvingHandler
class FileResolvingHandler

Request handler that resolves files within a given base path. This handler will take the request URL, and try to find a file or directory matching that URL within its configured basePath. If a directory is requested, the handler will try to serve an "index" file from it, if such a file exists. If a file is requested, that file will be served, with the appropriate mime type, if it exists.

Structs

DirectoryResolutionStrategy
struct DirectoryResolutionStrategy
Undocumented in source.