data EXPRESS :: !type ExpressM e a = Eff (express :: EXPRESS | e) aGeneral monad, indicates that we're dealing with express.js related functions. Applications should use HandlerM and AppM primarily and ExpressM in rare cases.
data Application :: *data Event :: *data Response :: *data Request :: *data Protocol
= Http
| Httpsinstance showProtocol :: Show Protocol
instance isForeignProtocol :: IsForeign Protocoldata Method
= ALL
| GET
| POST
| PUT
| DELETE
| OPTIONS
| HEAD
| TRACE
| CustomMethod Stringinstance showMethod :: Show Method
instance isForeignMethod :: IsForeign Methodtype Port = Inttype Path = Stringclass RoutePattern ainstance routePath :: RoutePattern String
instance routeRegex :: RoutePattern Regexclass RequestParam ainstance requestParamString :: RequestParam String
instance requestParamNumber :: RequestParam Numbernewtype CookieOptions
= CookieOptions { maxAge :: Int, signed :: Boolean, path :: String }Cookie options
- maxAge -- time in msecs
- signed -- use secret to sign if true
- path -- cookie path
instance defaultCookieOptions :: Default CookieOptions