Module

Node.Express.Handler

Package
purescript-express
Repository
dancingrobot84/purescript-express

#HandlerM Source

data HandlerM e a

Monad responsible for handling single request.

Constructors

Instances

#Handler Source

type Handler e = HandlerM (express :: EXPRESS | e) Unit

#runHandlerM Source

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

#next Source

next :: forall e. Handler e

Call next handler/middleware in a chain.

#nextThrow Source

nextThrow :: forall a e. Error -> HandlerM (express :: EXPRESS | e) a

Call next handler/middleware and pass error to it.