Function afire::extension::serve_static::get_type
source · pub fn get_type(ext: &str, extensions: &[MIME]) -> Option<&'static str>
Expand description
Gets the MIME type from the specified file extension using a slice of MIME types. If no type is found, None is returned.