Module

Hyper.Drive

Package
purescript-hyperdrive
Repository
owickstrom/purescript-hyperdrive

#Request Source

newtype Request body components

Constructors

Instances

#Response Source

newtype Response body

Constructors

Instances

#Application Source

type Application m req res = req -> m res

#hyperdrive Source

hyperdrive :: forall m req res r components reqBody resBody. Monad m => Request req m => Response res m r => ReadableBody req m reqBody => ResponseWritable r m resBody => Application m (Request reqBody components) (Response resBody) -> Middleware m (Conn req (res StatusLineOpen) components) (Conn req (res ResponseEnded) components) Unit

#response Source

response :: forall body. body -> Response body

#status Source

status :: forall body. Status -> Response body -> Response body

#header Source

header :: forall body. Header -> Response body -> Response body

#body Source

body :: forall a body. body -> Response a -> Response body