dav_dir

Function dav_dir 

Source
pub fn dav_dir(
    base: impl AsRef<Path>,
    index_html: bool,
    auto_index: bool,
) -> BoxedFilter<(impl Reply,)>
Available on crate feature warp-compat only.
Expand description

Creates a Filter that serves files and directories at the base path joined with the remainder of the request path, like warp::filters::fs::dir.

The behaviour for serving a directory depends on the flags:

  • index_html: if an index.html file is found, serve it.
  • auto_index: create a directory listing.
  • no flags set: 404.