Humphrey: A Performance-Focused, Dependency-Free Web Server.
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.
Installation
The Humphrey crate can be installed by adding humphrey
to your Cargo.toml file.
Documentation
The Humphrey documentation can be found at docs.rs.
Basic Example
use ;
use App;
use Error;
Further Examples
- Stateful Example: keeps track of button presses across sessions and devices
- Wildcard Example: demonstrates a wildcard route
- Static Content Example: demonstrates the built-in static content handlers
- Different Hosts Example: demonstrates how Humphrey can use different handlers depending on the host
- Database Example: integrates with JasonDB to make a basic message board