Module

Node.Restify.Handler

Package
purescript-restify
Repository
freqlabs/purescript-restify

#HandlerM Source

newtype HandlerM e a

Monad responsible for handling a single request.

Constructors

Instances

#Handler Source

type Handler e = HandlerM (restify :: RESTIFY | e) Unit

#runHandlerM Source

runHandlerM :: forall e. Handler e -> Request -> Response -> RestifyM e Unit -> RestifyM e Unit

#next Source

next :: forall e. Handler e

Call next handler/plugin in a chain.

#nextThrow Source

nextThrow :: forall a e. Error -> HandlerM (restify :: RESTIFY | e) a

Call next handler/plugin and pass error to it.