fuzzy_mime 0.1.0

A Mime-Type parsing library for rust
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented1 out of 7 items with examples
  • Size
  • Source code size: 16.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.73 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • StripedMonkey/fuzzy_media_types
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • StripedMonkey

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"))