strelka-2.0.3: A simple, flexible and composable web-router

Safe HaskellNone
LanguageHaskell2010

Strelka.ResponseBodyBuilding

Description

DSL for building of the response body.

Synopsis

Documentation

data Builder Source #

A builder of the response body.

bytes :: ByteString -> Builder Source #

Lift ByteString.

lazyBytes :: ByteString -> Builder Source #

Lift lazy ByteString.

lazyBytesBuilder :: Builder -> Builder Source #

Lift a ByteString builder.

text :: Text -> Builder Source #

Lift Text.

lazyText :: Text -> Builder Source #

Lift lazy Text.

lazyTextBuilder :: Builder -> Builder Source #

Lift a Text builder.

actions :: ((ByteString -> IO ()) -> IO () -> IO ()) -> Builder Source #

Lift a handler of the feeding and flushing actions.