Something went wrong. Try again.
An HTTP library for Zig 0.17, server and client, HTTP/1.0 through HTTP/3, with the protocol in a module that owns no socket.
Something went wrong. Try again.
12345678910111213141516171819202122232425// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
//! Making requests, rather than answering them.//!//! The same division as everywhere else here: this is what a request and a//! response *are*, and `http1.client` is how one version puts them on a//! byte stream. Nothing in either opens a connection -- a//! `transport.Connection` arrives from `http_io` in a program and from a//! slice of memory in a test, and the driver cannot tell which it has.//!//! What is here is deliberately the mirror of `server`: `Request` is what//! `server.Request` describes seen from the other end, and `Response` the//! same for `server.Response`. A caller that has written a handler already//! knows both.
const std = @import("std");
pub const Request = @import("client/Request.zig");pub const Response = @import("client/Response.zig");
test { std.testing.refAllDecls(@This());}