6 releases

0.1.5 Jun 12, 2024
0.1.4 Jun 11, 2024
0.1.3 May 29, 2024

#32 in #mime


Used in http-srv

MIT license

8KB
107 lines

RMime

MIME Type utils for Rust


lib.rs:

Mime Type crate

This crate contains utils to work with MIME types.

Example

use rmime::Mime;

let mime = Mime::from_filename("my_video.mp4").unwrap();
assert_eq!(mime.to_string(), "video/mp4");

No runtime deps