Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Shuttle_http.Body
SourceStream
represents streaming HTTP bodies. This module provides utilities to create and consume streams, while enforcing the invariant that only one consume can read from a stream, and that a stream can only be consumed once.
string str
creates a fixed length encoded body from a user provided string.
of_pipe
is a convenience function that creates a streaming body from a user provided Async_kernel.Pipe.Reader.t
. The pipe will be closed whenever the streaming body is closed, or EOF is reached.
stream
creates a streaming body from a user provided streaming module.