Crate mime_detective

Source
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§

MimeDetective
To detect the MimeType/ContentType using the magic library.

Enums§

DetectiveError
Represents nested error of magic as well as parse and io errors.