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
hteapot is designed to be minimal yet capable, perfect for development environments and small to medium projects. It's built with performance in mind while maintaining a simple interface.
# 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)
});
}
}
hteapot is open source and free to use. Start building your applications with a simple, fast HTTP server.