uhttp_method 0.10.0

HTTP methods split out from hyper.rs
Documentation
  • Coverage
  • 100%
    14 out of 14 items documented1 out of 4 items with examples
  • Size
  • Source code size: 7.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.51 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • kchmck/uhttp_method.rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kchmck

This crate provides an HTTP request method parser/formatter, split out from hyper.rs.

Example

use uhttp_method::Method;

assert_eq!("GET".parse(), Ok(Method::Get));
assert!(Method::Get.idempotent());
assert_eq!(format!("{}", Method::Patch), "PATCH");