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 pointHttpRequestandHttpResponse— re-exported from submodules
Use Hteapot::listen to start a server with a request handler closure.
Modules§
- brew
- Submodules for HTTP functionality.
Macros§
Structs§
- Hteapot
- Helper macro to construct header maps.
- Http
Headers - 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.
- Tunnel
Response
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.
Traits§
- Http
Response Common - Trait shared by all response types (normal, streamed, etc.)