data AppM e aMonad responsible for application related operations (initial setup mostly).
instance functorAppM :: Functor (AppM e)
instance applyAppM :: Apply (AppM e)
instance applicativeAppM :: Applicative (AppM e)
instance bindAppM :: Bind (AppM e)
instance monadAppM :: Monad (AppM e)
instance monadEffAppM :: MonadEff eff (AppM eff)type App e = AppM (express :: EXPRESS | e) UnitlistenHttp :: forall e1 e2. App e1 -> Port -> (Event -> Eff e2 Unit) -> ExpressM e1 ServerRun application on specified port and execute callback after launch. HTTP version
listenHttps :: forall e1 e2 opts. App e1 -> Port -> opts -> (Event -> Eff e2 Unit) -> ExpressM e1 ServerRun application on specified port and execute callback after launch. HTTPS version
apply :: forall e. App e -> Application -> ExpressM e UnitApply App actions to existent Express.js application
use :: forall e. Handler e -> App eUse specified middleware handler.
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
useAt :: forall e. Path -> Handler e -> App eUse specified middleware only on requests matching path.
useOnParam :: forall e. String -> (String -> Handler e) -> App eProcess route param with specified handler.
useOnError :: forall e. (Error -> Handler e) -> App eUse error handler. Probably this should be the last middleware to attach.
getProp :: forall e a. (IsForeign a) => String -> AppM (express :: EXPRESS | e) (Maybe a)Get application property. See http://expressjs.com/4x/api.html#app-settings
setProp :: forall e a. (IsForeign a) => String -> a -> App eSet application property. See http://expressjs.com/4x/api.html#app-settings
http :: forall e r. (RoutePattern r) => Method -> r -> Handler e -> App eBind specified handler to handle request matching route and method.
get :: forall e r. (RoutePattern r) => r -> Handler e -> App eShortcut for http GET.
post :: forall e r. (RoutePattern r) => r -> Handler e -> App eShortcut for http POST.
put :: forall e r. (RoutePattern r) => r -> Handler e -> App eShortcut for http PUT.
delete :: forall e r. (RoutePattern r) => r -> Handler e -> App eShortcut for http DELETE.
all :: forall e r. (RoutePattern r) => r -> Handler e -> App eShortcut for http ALL (match on any http method).