[][src]Function webdav_handler::warp::dav_dir

pub fn dav_dir(
    base: impl AsRef<Path>,
    index_html: bool,
    auto_index: bool
) -> BoxedFilter<(impl Reply,)>
This is supported on feature="warp-compat" only.

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.