happstack-server-tls-7.2.1.2: extend happstack-server with https:// support (TLS/SSL)
Safe HaskellNone
LanguageHaskell2010

Happstack.Server.SimpleHTTPS

Synopsis

Documentation

data TLSConf Source #

configuration for using https://

Constructors

TLSConf 

Fields

nullTLSConf :: TLSConf Source #

a partially complete TLSConf . You must sete tlsCert and tlsKey at a mininum.

simpleHTTPS Source #

Arguments

:: ToMessage a 
=> TLSConf

tls server configuration

-> ServerPartT IO a

server part to run

-> IO () 

start the https:// server, and handle requests using the supplied ServerPart.

This function will not return, though it may throw an exception.

simpleHTTPS' :: (ToMessage b, Monad m, Functor m) => (UnWebT m a -> UnWebT IO b) -> TLSConf -> ServerPartT m a -> IO () Source #

similar simpleHTTPS but allows you to supply a function to convert m to IO.