Skip to main content

content_type

Function content_type 

Source
pub fn content_type(format: Option<&CadFormat>, client: &str) -> String
Expand description

Content type to store for an upload: the registered type of the format, otherwise the (cleaned) type the client sent.