Crate uhttp_method [] [src]

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

Enums

Method

The Request Method (VERB)