API Reference
This section is the canonical placement for exported HTTP.jl docstrings and the documented submodule APIs that make up the supported 2.0 surface. The guides explain how the pieces fit together; these pages are where the concrete names live.
Module
HTTP.HTTP — Module
HTTPClient, server, streaming, WebSocket, and Server-Sent Events APIs for HTTP.jl.
The 2.0 API is built around explicit Request, Response, Headers, RequestContext, body, Client, Transport, Server, and Stream values. HTTP.jl owns HTTP message semantics and high-level client/server behavior, while Reseau provides the transport, resolver, and TLS substrate.
Common entrypoints:
request,get,post,put,patch,delete,head, andoptionsfor high-level client requests.openfor client-side request/response streaming.serve!/serveforRequest -> Responseservers.listen!/listenandstreamhandlerfor stream-oriented servers.WebSocketsfor WebSocket client and server helpers.SSEEventandsse_streamfor Server-Sent Events.
See the migration guide for the most important 1.x to 2.0 API changes.
Reference Map
- Core API: request/response types, headers, bodies, cookies, forms, and proxy configuration.
- Client API:
Client,Transport, top-level requests, streaming, and connection reuse helpers. - Server API:
Server,Stream, routing, middleware, static files, and SSE. - WebSockets API: WebSocket client/server types, messaging helpers, and server lifecycle operations.