Struct http_serve::dir::FsDir [−][src]
pub struct FsDir { /* fields omitted */ }This is supported on crate feature
dir only.Expand description
A base directory for local filesystem traversal.
Implementations
Opens a path within this base directory.
If using auto_gzip (the default) and req_hdrs indicate the client supports gzip, will
look for a .gz-suffixed version of this path first and note that in the returned Node.
.gz-suffixed directories are ignored.
Validates that path has no .. segments or interior NULs. Currently doesn’t check for
symlinks, however. That may eventually be configurable via the builder.