Function hyper_static::serve::static_file
source · pub async fn static_file<'a>(
file_path: &Path,
mime_type: Option<&str>,
headers: &HeaderMap,
buf_size: usize
) -> Result<Result<ResponseStreamed, Error>, Error>