[][src]Function actix_files::file_extension_to_mime

pub fn file_extension_to_mime(ext: &str) -> Mime

Return the MIME type associated with a filename extension (case-insensitive). If ext is empty or no associated type for the extension was found, returns the type application/octet-stream.