Skip to main content

content_type

Function content_type 

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

The content type a stored file is served with, derived from its extension alone.