Function fire_http::fs::serve_file
source · pub async fn serve_file(
path: impl AsRef<Path>,
req: &Request,
caching: Option<Caching>
) -> Result<Response>
Available on crate feature
fs
only.Expand description
returns io::Error not found if the path is a directory