streaming-commons-0.1.7.3: Common lower-level functions needed by various streaming data libraries

Safe HaskellNone
LanguageHaskell98

Data.Streaming.Blaze

Contents

Description

Convert a stream of blaze-builder Builders into a stream of ByteStrings.

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.

Synopsis

Documentation

type BlazeRecv = Builder -> IO BlazePopper Source

type BlazePopper = IO ByteString Source

Provides a series of ByteStrings until empty, at which point it provides an empty ByteString.

Since 0.1.2

type BlazeFinish = IO (Maybe ByteString) Source

Buffers

data Buffer :: *

Status information

Creation and modification

Conversion to bytestings

unsafeFreezeBuffer :: Buffer -> ByteString

Buffer allocation strategies