Expand description
The MimeDetective spies for the magic number of a file or buffer
and spits out strongly typed Mimes.
§Example
use mime_detective::MimeDetective;
let detective = MimeDetective::new().unwrap();
let mime = detective.detect_filepath("Cargo.toml").unwrap();Structs§
- Mime
Detective - To detect the MimeType/ContentType using the magic library.
Enums§
- Detective
Error - Represents nested error of
magicas well as parse and io errors.