static-file-resolver 10.3.0

A library that resolves the file a request asks for under a root directory. It refuses a path that climbs out of the root, so a request cannot reach a file the root does not hold.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// 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 = "..";