[][src]Module gotham::handler::assets

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

DirHandler

Represents a handler for any files under a directory.

FileHandler

Represents a handler for a single file.

FileOptions

Options to pass to file or dir handlers. Allows overriding default behaviour for compression, cache control headers, etc.

FilePathExtractor

Responsible for extracting the file path matched by the glob segment from the URL.