Safe Haskell | None |
---|---|
Language | Haskell98 |
core functions and types for HTTPS support
- log' :: Priority -> String -> IO ()
- data TLSConf = TLSConf {}
- nullTLSConf :: TLSConf
- data HTTPS = HTTPS {}
- httpsOnSocket :: FilePath -> FilePath -> Maybe FilePath -> Socket -> IO HTTPS
- acceptTLS :: Socket -> ServerParams -> IO Context
- listenTLS :: TLSConf -> (Request -> IO Response) -> IO ()
- listenTLS' :: Int -> Maybe (LogAccess UTCTime) -> HTTPS -> (Request -> IO Response) -> IO ()
Documentation
configuration for using https://
record that holds the Socket
and SSLContext
needed to start
the https:// event loop. Used with simpleHTTPWithSocket'
see also: httpOnSocket
:: FilePath | path to ssl certificate |
-> FilePath | path to ssl private key |
-> Maybe FilePath | path to PEM encoded list of CA certificates |
-> Socket | listening socket (on which listen() has been called, but not accept()) |
-> IO HTTPS |
generate the HTTPS
record needed to start the https:// event loop
:: Socket | the socket returned from |
-> ServerParams | |
-> IO Context |
accept a TLS connection