Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data TLSConf = TLSConf {}
- nullTLSConf :: TLSConf
- simpleHTTPS :: ToMessage a => TLSConf -> ServerPartT IO a -> IO ()
- simpleHTTPS' :: (ToMessage b, Monad m, Functor m) => (UnWebT m a -> UnWebT IO b) -> TLSConf -> ServerPartT m a -> IO ()
Documentation
configuration for using https://
:: 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
.