Function static_file

Source
pub async fn static_file<'a>(
    file_path: &Path,
    mime_type: Option<&str>,
    headers: &HeaderMap,
    buf_size: usize,
) -> Result<Result<Streamed, Error>, Error>