Module gotham::handler::assets

source ·
Expand description

Defines handlers for serving static assets. Defines handlers for static assets, used by to_file and to_dir routes. Both ‘If-None-Match’ (etags) and ‘If-Modified-Since’ are supported to check file modification. Side-by-side compressed files for gzip and brotli are supported if enabled See ‘FileOptions’ for more details.

Structs

Represents a handler for any files under a directory.
Represents a handler for a single file.
Options to pass to file or dir handlers. Allows overriding default behaviour for compression, cache control headers, etc.
Responsible for extracting the file path matched by the glob segment from the URL.