Safe Haskell | Safe-Infered |
---|
Utils for HTTP servers
- defaultHttpConf :: FilePath -> FilePath -> Config Snap ()
- httpConfFromOpts :: GanetiDaemon -> DaemonOptions -> IO (Config Snap ())
- error404 :: Snap ()
- plainJSON :: JSON a => a -> Snap ()
Configuration handling
defaultHttpConf :: FilePath -> FilePath -> Config Snap ()Source
httpConfFromOpts :: GanetiDaemon -> DaemonOptions -> IO (Config Snap ())Source
Get the HTTP Configuration from the daemon options.