Module

Bucketchain.ResponseBody

Package
purescript-bucketchain
Repository
Bucketchain/purescript-bucketchain

#ResponseBody Source

data ResponseBody :: Type

The type of a response body stream.

#toReadable Source

toReadable :: ResponseBody -> Readable ()

Convert a response body stream to a Readable stream.

#fromReadable Source

fromReadable :: forall r. Readable r -> ResponseBody

Convert a Readable stream to a response body stream.

#maybeToBody Source

maybeToBody :: Maybe ResponseBody -> Effect ResponseBody

This is for internal. Do not use it.

#body Source

body :: String -> Effect ResponseBody

Create a response body stream.