fuzzy_mime

Crates.iofuzzy_mime
lib.rsfuzzy_mime
version0.1.0
sourcesrc
created_at2022-08-26 04:34:23.008461
updated_at2022-08-26 04:34:23.008461
descriptionA Mime-Type parsing library for rust
homepage
repositoryhttps://github.com/StripedMonkey/fuzzy_media_types/
max_upload_size
id652543
size17,086
Noah (StripedMonkey)

documentation

README

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"))
Commit count: 7

cargo fmt