package shuttle_http
Async library for HTTP/1.1 servers and clients
Install
Dune Dependency
Authors
Maintainers
Sources
shuttle_http-0.12.0.tbz
sha256=073651dfcbe88a29856ae9568583ecece3df659aa74470ca92671e388ccc9351
sha512=78a8f4517238a7332cf5211f250aa031a3f64fcdf3617c23f072183bbbd9535e295cdef9551d24e4451ef674e0ce6845296960f66ca9c28b81430f4cf0dda563
doc/shuttle_http/Shuttle_http/Body/index.html
Module Shuttle_http.Body
Source
Stream
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.
to_string
returns a deferred that will be fulfilled with the entire body converted to a string.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>