Crate hteapot

Source
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:

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
HttpRequest
Represents a parsed HTTP request.
HttpResponse
Represents a full HTTP response (headers + body).
StreamedResponse
Represents a streaming HTTP response using chunked transfer encoding.

Enums§

HttpMethod
Represents an HTTP method (verb).
HttpStatus
Represents an HTTP status code with a semantic variant name.

Constants§

VERSION
Crate version as set by Cargo.toml.