Crate uhttp_status [−] [src]
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);
Enums
StatusClass |
The class of an HTTP |
StatusCode |
An HTTP status code ( |