use-mime
Small MIME type utilities for RustUse.
Experimental
use-mime is experimental while the use-web workspace remains below 0.3.0. Expect small API adjustments during the first release wave.
Example
use ;
let mime = parse_mime.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert!;
Scope
- Lightweight MIME parsing and classification.
- Small extension and MIME lookup tables for common web assets.
- Graceful handling for malformed input.
Non-goals
- Complete IANA MIME coverage.
- Content sniffing.
- File parsing.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license