Crates.io | fuzzy_mime |
lib.rs | fuzzy_mime |
version | 0.1.0 |
source | src |
created_at | 2022-08-26 04:34:23.008461 |
updated_at | 2022-08-26 04:34:23.008461 |
description | A Mime-Type parsing library for rust |
homepage | |
repository | https://github.com/StripedMonkey/fuzzy_media_types/ |
max_upload_size | |
id | 652543 |
size | 17,086 |
A work in progress Media-Type parsing library
Allows for relatively easy interpreting of Content-Type headers and "fuzzy" matching of subtypes
use fuzzy_mime::BorrowedMediaType;
let media_type = BorrowedMediaType::parse("application/json;charset=utf-8").unwrap();
assert!(media_type.matches("application/json"))