trillium-http 1.0.0

the http implementation for the trillium toolkit
Documentation
trillium-http-1.0.0 has been yanked.

⚙️ trillium-http — low-level HTTP/1.x implementation

ci crates.io version docs.rs

Low-level HTTP/1.x and HTTP/3 implementation for Trillium. Provides Conn for managing a single request/response lifecycle, HttpContext for shared server settings, header types (Headers, KnownHeaderName, HeaderValue), and body types. This crate is primarily intended for use by the higher-level trillium crate and runtime adapters — most users should depend on those instead.

Example

use trillium_http::{HttpContext, KnownHeaderName, Status};

let config = HttpContext::default();
// Use `config.run(transport, handler_fn)` to process a connection
// over any AsyncRead + AsyncWrite transport.

Safety

This crate uses #![forbid(unsafe_code)].

License