Function response_from_file

Source
pub async fn response_from_file<PathT>(
    path: PathT,
    negotiable: bool,
) -> Response<ServeFileSystemResponseBody>
where PathT: AsRef<Path>,
Available on crate feature file only.
Expand description

Create a Response from a file.