hyperlane-plugin-static-files 22.0.5

A static file plugin for the Hyperlane framework, serving the files of a directory with the content type of the framework.
Documentation
/// The name of the route parameter that carries the path of the file.
pub(crate) const PARAM_PATH: &str = "path";

/// The pattern of a route that serves the files under a prefix.
pub(crate) const PATTERN_FORMAT: &str = "{prefix}/{path:.*}";

/// The file that answers a request for a directory.
pub(crate) const INDEX_DEFAULT: &str = "index.html";

/// The separator that splits the segments of a path.
pub(crate) const SEPARATOR_SLASH: &str = "/";

/// The separator that must not appear in a segment of a path.
pub(crate) const SEPARATOR_BACKSLASH: char = '\\';

/// The segment that names the directory a path is in.
pub(crate) const SEGMENT_CURRENT: &str = ".";

/// The segment that names the directory a path comes from.
pub(crate) const SEGMENT_PARENT: &str = "..";