Expand description
HTeaPot HTTP server core.
This module provides a multithreaded HTTP/1.1 server built for performance and ease of use. It handles request parsing, response building, connection lifecycle (keep-alive) and hooks.
Core types:
Hteapot
— the main server entry pointHttpRequest
andHttpResponse
— re-exported from submodules
Use Hteapot::listen
to start a server with a request handler closure.
Modules§
- brew
- Submodules for HTTP functionality.
Macros§
- headers
- Helper macro to construct header maps.
Structs§
- Hteapot
- Http
Request - Represents a parsed HTTP request.
- Http
Response - Represents a full HTTP response (headers + body).
- Streamed
Response - Represents a streaming HTTP response using chunked transfer encoding.
Enums§
- Http
Method - Represents an HTTP method (verb).
- Http
Status - Represents an HTTP status code with a semantic variant name.
Constants§
- VERSION
- Crate version as set by
Cargo.toml
.