uhttp_status 0.10.0

HTTP status codes split out from hyper.rs
Documentation
  • Coverage
  • 100%
    79 out of 79 items documented3 out of 12 items with examples
  • Size
  • Source code size: 35.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.73 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • kchmck/uhttp_status.rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kchmck

This crate provides an HTTP status code formatter, split out from hyper.rs.

Example

use uhttp_status::{StatusCode, StatusClass};

assert_eq!(format!("{}", StatusCode::NotFound), "404 Not Found");
assert_eq!(format!("{}", StatusCode::Ok), "200 OK");
assert_eq!(StatusCode::NotImplemented.class(), StatusClass::ServerError);