Fast, lightweight, and zero dependencies. Perfect for development and small projects.
Built with Rust for maximum performance and minimal resource usage
Easy to use with a clean API and minimal configuration required
No external dependencies means smaller binaries and better security
# Install hteapot
cargo install hteapot
# Start the server
hteapot config.toml
[HTEAPOT]
port = 8081
host = "0.0.0.0"
threads = 4
root = "public"
cache = true
cache_ttl = 36
[proxy]
"/test" = "http://example.com"
use hteapot::{HttpStatus, HttpResponse, Hteapot, HttpRequest};
fn main() {
let server = Hteapot::new("localhost", 8081);
server.listen(move |req: HttpRequest| {
// This will be executed for each request
HttpResponse::new(HttpStatus::IAmATeapot, "Hello, I am HTeaPot", None)
});
}
}
Get the latest version of hteapot for your platform. Pre-compiled binaries are available for all major operating systems.
Loading...
Loading...
Loading...
cargo install hteapot
git clone && cargo build --release
hteapot is open source and free to use. Start building your applications with a simple, fast HTTP server.