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.
12345678910111213141516171819202122232425262728// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
//! The server: an accept loop, and the three types a handler is written//! against.//!//! None of it is specific to a version of HTTP. `Request` and `Response` are//! HTTP semantics, `Handler` is a function over them, and `Server` decides//! which driver gets the connection. A handler written here will serve//! HTTP/2 the day there is a driver for it, without being recompiled against//! anything different.
const std = @import("std");
pub const Handler = @import("server/Handler.zig");pub const Request = @import("server/Request.zig");pub const compression = @import("server/compression.zig");pub const Response = @import("server/Response.zig");pub const Server = @import("server/Server.zig");
pub const Config = Server.Config;pub const Driver = Server.Driver;pub const Protocol = Server.Protocol;
test { std.testing.refAllDecls(@This());}