// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie // SPDX-License-Identifier: MIT //! HTTP/1.0 and HTTP/1.1 on the wire: RFC 9112. //! //! One driver, `Connection.serve`, and the head parser it is built on. The //! parser is separate and pure, so that it can be tested and fuzzed on a //! string; everything that touches a connection is in `Connection`. //! //! One of the two version-specific halves of the library. Its sibling is //! `http2`, which implements the same two seams — `server.Server` picks one //! per connection, and each fills in a `Request` and drives a `Response` — //! without either the handler above them or the transport below them knowing //! which is running. const std = @import("std"); pub const Connection = @import("http1/Connection.zig"); pub const head = @import("http1/head.zig"); /// Reading a message body once something has decided how long it is. pub const body = @import("http1/body.zig"); /// The client side of an exchange: writing a request and reading a response. pub const client = @import("http1/client.zig"); pub const Config = Connection.Config; pub const serve = Connection.serve; /// Below this a connection's read buffer cannot hold a chunk-size line or /// anything else useful, and a server configured with less will refuse every /// chunked request. pub const min_read_buffer_len = 64; test { std.testing.refAllDecls(@This()); }