Skip to main content

content_type

Function content_type 

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

The media type of a delivered file, by its extension: what an email attachment or an uploaded object is labelled, so the recipient’s mail client or browser opens it.