Function static_web_server::directory_listing::auto_index
source · pub fn auto_index(
opts: DirListOpts<'_>
) -> impl Future<Output = Result<Response<Body>, StatusCode>> + Send + '_Available on crate feature
directory-listing only.Expand description
Provides directory listing support for the current request.
Note that this function highly depends on static_files::composed_file_metadata() function
which must be called first. See static_files::handle() for more details.