Humphrey is a very fast, robust and flexible HTTP/1.1 web server crate which allows you to develop web applications in Rust. With no dependencies, it is very quick to compile and produces very small binaries, as well as being very resource-efficient.
The Humphrey crate can be installed by adding humphrey
to your Cargo.toml file.
The Humphrey documentation can be found at docs.rs.
```rs use humphrey::http::{Request, Response, StatusCode}; use humphrey::App; use std::error::Error;
fn main() -> Result<(), Box
Ok(())
}
fn home(_: Request) -> Response { Response::new(StatusCode::OK, b"
fn contact(_: Request) -> Response { Response::new(StatusCode::OK, b"