This crate provides an HTTP request method parser/formatter, split out from hyper.rs.
Example
use Method;
assert_eq!;
assert!;
assert_eq!;
This crate provides an HTTP request method parser/formatter, split out from hyper.rs.
use uhttp_method::Method;
assert_eq!("GET".parse(), Ok(Method::Get));
assert!(Method::Get.idempotent());
assert_eq!(format!("{}", Method::Patch), "PATCH");