Builder package:conduit-extra
Convert a stream of blaze-builder
Builders into a stream of
ByteStrings.
Works with both blaze-builder < 0.4's
Builders and
Builder.
Adapted from blaze-builder-enumerator, written by myself and Simon
Meier.
Note that the functions here can work in any monad built on top of
IO or
ST.
Since 1.1.7.0
Wrapper for input source which accepts
Builders. You can pass
flush to flush the input. Note that the pipe will
not
automatically close when the processing completes.
Incrementally execute builders and pass on the filled chunks as
bytestrings.
A conduit that incrementally executes builders and passes on the
filled chunks as bytestrings to an inner sink.
INV: All bytestrings passed to the inner sink are non-empty.
Stream incoming builders, executing them directly on the buffer of the
given
Handle. Note that this function does
not
automatically close the
Handle when processing completes.
Pass
flush to flush the buffer.
Incrementally execute builders on the given buffer and pass on the
filled chunks as bytestrings. Note that, if the given buffer is too
small for the execution of a build step, a larger one will be
allocated.
WARNING: This conduit yields bytestrings that are NOT referentially
transparent. Their content will be overwritten as soon as control is
returned from the inner sink!