happstack-server-tls-7.0.3: extend happstack-server with https:// support (TLS/SSL)

Safe HaskellNone

Happstack.Server.SimpleHTTPS

Synopsis

Documentation

data TLSConf Source

configuration for using https://

Constructors

TLSConf 

Fields

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

a function to validate the output on-the-fly

nullTLSConf :: TLSConfSource

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

simpleHTTPSSource

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.