[][src]Module rocket_contrib::serve

Custom handler and options for static file serving.

See the StaticFiles type for further details.

Enabling

This module is only available when the serve feature is enabled. Enable it in Cargo.toml as follows:

[dependencies.rocket_contrib]
version = "0.4.0"
default-features = false
features = ["serve"]

Structs

Options

A bitset representing configurable options for the StaticFiles handler.

StaticFiles

Custom handler for serving static files.