get_mime_type

Function get_mime_type 

Source
pub fn get_mime_type(file_path: &str) -> &'static str
Expand description

Get MIME type for a file extension

§Arguments

  • file_path - The file path to determine MIME type for

§Returns

Returns the MIME type string for the file extension