Skip to main content

Crate moirai_http

Crate moirai_http 

Source
Expand description

Minimal async HTTP/1.1 client for the Moirai runtime.

Runs over Moirai async sockets and moirai_tls — no Tokio. Scope is the request shapes object-storage clients need (GET with Range, HEAD, small PUT/POST bodies): Content-Length and chunked response framing, a bounded keep-alive connection pool, and per-request timeouts. HTTP/2 is out of scope (ADR-015). Vendor protocols (e.g. S3 SigV4) are built by callers on top of this — this crate knows HTTP, not S3.

Re-exports§

pub use codec::Response;
pub use conn::Origin;

Modules§

codec
HTTP/1.1 request serialization and response parsing (status line, headers, and body framing: Content-Length, chunked transfer-encoding, or EOF-delimited).
conn
Transport connection: a plain or TLS-wrapped Moirai TCP stream, unified as a single Moirai async stream via a static enum (no dyn on the hot path).

Structs§

HttpClient
Async HTTP/1.1 client with a bounded keep-alive connection pool.