Skip to main content

content_type

Function content_type 

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

The type of the file at path, by its extension; application/octet-stream for any other.