Module
Node.Express.App
- Package
- purescript-express
- Repository
- dancingrobot84/purescript-express
#apply Source
apply :: forall e. App e -> Application -> ExpressM e UnitApply App actions to existent Express.js application
#useExternal Source
useExternal :: forall e. Fn3 Request Response (ExpressM e Unit) (ExpressM e Unit) -> App eUse any function as middleware. Introduced to ease usage of a bunch of external middleware written for express.js. See http://expressjs.com/4x/api.html#middleware
#useOnParam Source
useOnParam :: forall e. String -> (String -> Handler e) -> App eProcess route param with specified handler.
#useOnError Source
useOnError :: forall e. (Error -> Handler e) -> App eUse error handler. Probably this should be the last middleware to attach.
#setProp Source
setProp :: forall a e. Decode a => String -> a -> App eSet application property. See http://expressjs.com/4x/api.html#app-settings
#http Source
http :: forall r e. RoutePattern r => Method -> r -> Handler e -> App eBind specified handler to handle request matching route and method.