kvarn::comprash

Function get_mime

source
pub fn get_mime(extension: &str, file_contents: &[u8]) -> Mime
Expand description

Guesses the mime. file_contents should be < 16 bytes.