tiny.http
Overview · API · Code relationships · Verification · Audit
Overview
Http parses and writes HTTP/1.1 requests and responses and WebSocket frames, and routes requests to handlers. Callers set storage limits and provide parsing storage, and parsing reports that more input is needed when a request is incomplete.
Parsed request method, path, header names, and header values borrow slices of the input bytes, while header entry records themselves are placed in caller-provided header storage. A body with a fixed length borrows input bytes. For a chunked request, the input parameter is immutable: the parser reads the input, removes the framing, and writes decoded chunked-body bytes into a separate caller-provided body buffer. Client response headers and body are stored in caller-provided response storage and borrow that storage.
Returned slices are valid while their backing storage remains alive and unchanged, so callers copy values they retain across overwrite or storage reuse.
Definitions
Actions
Public operations.
Types and contracts
Public types and contracts.
ClientOperationConnectionResponseHeadersRequestHeadersClientWebSocketOpcodeChunkedWriterClientErrorClientOperationCapacityClientOperationErrorClientOperationLimitsClientOperationScratchClientOperationStorageClientResponseClientResponseCapacityClientResponseErrorClientResponseLimitsClientResponseScratchClientResponseStorage: Storage provides reusable response slots cut from memory sized by caller limits.ClientStreamClientStreamCapacityClientStreamErrorClientStreamLimitsClientStreamScratchClientStreamStorageClientWebSocketCapacityClientWebSocketLimitsClientWebSocketScratchClientWebSocketStorageConnectionInputCapacityConnectionInputLimitsConnectionInputStatusConnectionInputStorageFrameErrorFrameParseResultHandshakeErrorHeaderParseErrorRequestCapacityRequestHeaderRequestLimitsRequestParseResultRequestScratchRequestStorageResponseCapacityResponseErrorResponseHeaderResponseLimitsResponseScratchResponseSerializedResponseStorageServerStreamHandlerStreamHandlerVTableWebSocketCapacityWebSocketClientHandshakeWebSocketCloseCodeWebSocketLimitsWebSocketMessageWebSocketStateWebSocketStorageWebsocketStorageClientResponseRequestFrameWebSocket
Namespaces
Public namespaces.
chunkcontrolled: Provides a fixed-storage HTTP client for callers that choose storage bounds before running a request.
Values and defaults
Public values and defaults.
default_client_operation_host_bytesdefault_client_operation_plain_read_bytesdefault_client_operation_plain_write_bytesdefault_client_operation_target_bytesdefault_client_response_body_bytesdefault_client_response_head_bytesdefault_client_stream_head_bytesdefault_client_response_header_countdefault_client_stream_header_countdefault_connection_input_bytes_per_connectiondefault_request_body_bytesdefault_request_header_countdefault_request_header_line_bytesdefault_response_head_bytesdefault_response_header_count
Code relationships
Direct static dependencies extracted from parsed source by semantic graph analysis.
Uses: tiny.alloc, tiny.bench, tiny.hypothesis, tiny.sdfii, tiny.simd, tiny.sys
Used by: tiny.accy, tiny.pluck, tiny.profiling, tiny.smg, tiny.tldr, tiny.windowing
Verification
No verification records are cataloged for this module in this build.
Audit
| Evidence | Value |
|---|---|
| Source | lib/http/src/root.zig |
| Definitions | 2 of 84 documented |
| Members | 0 of 0 documented |
| Public names | 87 API, 331 indexed |
| Version | 26.7.0 |
| Revision | daab053ee433 |