Node.Express.App
- Package
- purescript-express
- Repository
- purescript-express/purescript-express
#listenHttp Source
listenHttp :: App -> Port -> (Event -> Effect Unit) -> Effect HttpServerRun application on specified port and execute callback after launch. HTTP version
#listenHttps Source
listenHttps :: forall opts. App -> Port -> opts -> (Event -> Effect Unit) -> Effect HttpsServerRun application on specified port and execute callback after launch. HTTPS version
#listenHostHttp Source
listenHostHttp :: App -> Port -> Host -> (Event -> Effect Unit) -> Effect HttpServerRun application on specified port & host and execute callback after launch. HTTP version
#listenHostHttps Source
listenHostHttps :: forall opts. App -> Port -> Host -> opts -> (Event -> Effect Unit) -> Effect HttpsServerRun application on specified port & host and execute callback after launch. HTTPS version
#listenPipe Source
listenPipe :: App -> Pipe -> (Event -> Effect Unit) -> Effect HttpServerRun application on specified named pipe and execute callback after launch. HTTP version
#makeHttpServer Source
makeHttpServer :: App -> Effect HttpServerCreate a Node.HTTP server from the Express application. HTTP version
#makeHttpsServer Source
makeHttpsServer :: App -> Effect HttpsServerCreate a Node.HTTP server from the Express application. HTTPS version
#apply Source
apply :: App -> Application -> Effect UnitApply App actions to existent Express.js application
#useExternal Source
useExternal :: Middleware -> AppUse 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
#useAtExternal Source
useAtExternal :: Path -> Middleware -> AppUse any function as middleware only on requests matching path. Introduced to ease usage of a bunch of external middleware written for express.js. See http://expressjs.com/4x/api.html#middleware
#useOnError Source
useOnError :: (Error -> Handler) -> AppUse 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 -> AppSet application property. See http://expressjs.com/4x/api.html#app-settings
#http Source
http :: forall r. RoutePattern r => Method -> r -> Handler -> AppBind specified handler to handle request matching route and method.
#all Source
all :: forall r. RoutePattern r => r -> Handler -> AppShortcut for http ALL (match on any http method).
#_listenHttps Source
_listenHttps :: forall opts. EffectFn4 Application Port opts (EffectFn1 Event Unit) HttpsServer#_listenHostHttps Source
_listenHostHttps :: forall opts. EffectFn5 Application Port Host opts (EffectFn1 Event Unit) HttpsServer