Module
Node.Express.App
- Package
- purescript-express
- Repository
- nkly/purescript-express
#makeHttpServer Source
makeHttpServer :: App -> Effect Server
Create a Node.HTTP server from the Express application. HTTP version
#makeHttpsServer Source
makeHttpsServer :: App -> Effect Server
Create a Node.HTTP server from the Express application. HTTPS version
#apply Source
apply :: App -> Application -> Effect Unit
Apply App actions to existent Express.js application
#useExternal Source
useExternal :: Fn3 Request Response (Effect Unit) (Effect Unit) -> App
Use 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 :: String -> (String -> Handler) -> App
Process route param with specified handler.
#useOnError Source
useOnError :: (Error -> Handler) -> App
Use error handler. Probably this should be the last middleware to attach.
#getProp Source
getProp :: forall a. String -> AppM (Maybe a)
Get application property. See http://expressjs.com/4x/api.html#app-settings
#setProp Source
setProp :: forall a. String -> a -> App
Set application property. See http://expressjs.com/4x/api.html#app-settings