Hcs.Stream
hcs · API reference
Synchronous and Eio-oriented streaming helpers.
Use this for pull-style streams, chunking, converting strings/files/flows to streams, and writing stream contents to Eio flows. HTTP response streaming is represented in Response.
Streaming abstractions for HCS HTTP library.
This module provides both synchronous and asynchronous stream types for handling large payloads efficiently with backpressure support.
Synchronous Streams
For simple, pull-based iteration without runtime dependencies.
Asynchronous Streams (Eio)
For streaming with Eio's structured concurrency, supporting flows, files, and chunked transfer encoding.
module Sync : sig ... endmodule Async : sig ... endChunked Transfer Encoding
module Chunked : sig ... endHelpers for HTTP chunked transfer encoding