Copyright | (c) Eduardo Trujillo, 2016 |
---|---|
License | Apache |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
The Main module contains an implementation of a configurable static web server with support for a middleware stack and different environments (development, staging, production).
Take a look at ServeConfiguration
for all the possible configuration
options or simply use it's Default
instance for a basic
server.
- serve :: (MonadIO m, MonadBaseControl IO m) => ServeConfiguration -> m ()
- serve' :: (MonadIO m, MonadBaseControl IO m) => ServeConfiguration -> m ()
Documentation
serve :: (MonadIO m, MonadBaseControl IO m) => ServeConfiguration -> m () Source #
Starts a server with the provided ServeConfiguration
. If TLS settings
are provided, an additional server is started for handling secure requests.
serve' :: (MonadIO m, MonadBaseControl IO m) => ServeConfiguration -> m () Source #
Starts a server with the provided ServeConfiguration
. If TLS settings
are provided, an additional server is started for handling secure requests.
Unlike $serve'$, stage transforms are not applied on the provided
configuration.