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.Listeners

Contents

Description

The Listeners module includes wrappers for starting TLS and non-TLS Warp servers, with support for IPv4 and IPv6.

Synopsis

Listeners

listen :: (MonadLogger m, MonadIO m) => Int -> Application -> m () Source #

Serves a WAI Application on the specified port. The target port is printed to stdout before hand, which can be useful for debugging purposes.

listenTLS :: (MonadLogger m, MonadIO m) => TLSSettings -> Int -> Application -> m () Source #

Serves a WAI Application on the specified port. The target port is printed to stdout before hand, which can be useful for debugging purposes.

Re-exports

data TLSSettings :: * #

Settings for WarpTLS.

tlsSettingsChain #

Arguments

:: FilePath

Certificate file

-> [FilePath]

Chain certificate files

-> FilePath

Key file

-> TLSSettings 

A smart constructor for TLSSettings that allows specifying chain certificates based on defaultTlsSettings.

Since 3.0.3