HTTPageboy
Minimal HTTP server package for handling request/response transmission. Focuses only on transporting a well formed HTTP message; does not process or decide how the server behaves. Aspires to become runtime-agnostic, with minimal, solid, and flexible dependencies.
Example
The core logic resides in src/lib.rs.
See it working out of the box on this video
The following example is executable. Run cargo run to see the available variants and navigate to http://127.0.0.1:7878 in your browser.
A basic server setup:
use ;
/// Minimal async handler: waits 100ms and replies "ok"
async
async
Testing
For synchronous tests:
For asynchronous tests:
Examples
Additional examples can be found within the tests.
License
Copyright (c) 2025 fahedsl. This project is licensed under the MIT License.