HTTP SERVER
Live Demo
The "tinyhttp" crate contains none of the internal code due to the procedural macro crate depending on data types on the internal crate.
Speedy HTTP server built purely in Rust. Comes with built-in GZIP compression and HTTPS support.
Uses procedural macros for easy API building.
Performance
On a Raspberry Pi 4 with ethernet, tinyhttp is able to serve around 15000 requests per second
This was tested with go-wrk
Examples
Example :
use TcpListener;
use *;
// Example 1: Can return anything that implements Into<Vec<u8>>
// Example 2: same as example 1, but takes a Request as an argument
// Example 3: takes a Request as an argument and returns a Response for more control