kawaii-0.0.1.0: Utilities for serving static sites and blogs with Wai/Warp

Copyright(c) Eduardo Trujillo, 2016
LicenseApache
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Serve.Main

Description

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.

Synopsis

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.