happstack-server-tls-cryptonite-0.1.1: Extend happstack-server with native HTTPS support (TLS/SSL)

Safe HaskellNone
LanguageHaskell98

Happstack.Server.SimpleTLS

Synopsis

Documentation

data TLSConf Source

configuration for using https://

Constructors

TLSConf 

Fields

tlsPort :: Int
 
tlsCert :: FilePath
 
tlsKey :: FilePath
 
tlsCA :: Maybe FilePath
 
tlsTimeout :: Int
 
tlsLogAccess :: Maybe (LogAccess UTCTime)
 
tlsValidator :: Maybe (Response -> IO Response)

a function to validate the output on-the-fly

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.