Skip to main content

mime_for

Function mime_for 

Source
pub fn mime_for(path: &Path) -> &'static str
Expand description

MIME type by extension; unknown extensions are plain text (the browser shows them instead of downloading).