Module

Bucketchain.ResponseBody

#ResponseBody

data ResponseBody :: Type

The type of a response body stream.

#toReadable

toReadable :: ResponseBody -> Readable ()

Convert a response body stream to a Readable stream.

#fromReadable

fromReadable :: forall r. Readable r -> ResponseBody

Convert a Readable stream to a response body stream.

#maybeToBody

maybeToBody :: Maybe ResponseBody -> Effect ResponseBody

This is for internal. Do not use it.

#body

body :: String -> Effect ResponseBody

Create a response body stream.

Modules