Tech News
← Back to articles

Httpz – Zero-Allocation HTTP/1.1 Parser for OxCaml

read original related products more articles

httpz - Zero-Allocation HTTP/1.1 Parser for OxCaml

A high-performance HTTP/1.1 parser and serializer that aims for zero heap allocations using OxCaml's unboxed types and local allocations.

Will soon have io_uring on Linux.

Features

Zero heap allocations : Parser results are stack-allocated using OxCaml unboxed records and local lists

: Parser results are stack-allocated using OxCaml unboxed records and local lists Direct bigstring I/O : Read and write directly to/from bigarray buffers

: Read and write directly to/from bigarray buffers HTTP/1.1 support : Methods, headers, chunked transfer encoding, keep-alive

: Methods, headers, chunked transfer encoding, keep-alive Async file server included: Production-ready static file server. Soon to be parallel.

Architecture

httpz achieves zero-allocation parsing through:

... continue reading