Safe Haskell | None |
---|
- data TLSSettings
- certFile :: TLSSettings -> FilePath
- keyFile :: TLSSettings -> FilePath
- onInsecure :: TLSSettings -> OnInsecure
- data OnInsecure
- tlsSettings :: FilePath -> FilePath -> TLSSettings
- runTLS :: TLSSettings -> Settings -> Application -> IO ()
- runTLSSocket :: TLSSettings -> Settings -> Socket -> Application -> IO ()
- data WarpTLSException = InsecureConnectionDenied
Documentation
data TLSSettings Source
certFile :: TLSSettings -> FilePathSource
File containing the certificate.
keyFile :: TLSSettings -> FilePathSource
File containing the key
onInsecure :: TLSSettings -> OnInsecureSource
Do we allow insecure connections with this server as well? Default is a simple text response stating that a secure connection is required.
Since 1.4.0
:: FilePath | Certificate file |
-> FilePath | key file |
-> TLSSettings |
runTLS :: TLSSettings -> Settings -> Application -> IO ()Source
runTLSSocket :: TLSSettings -> Settings -> Socket -> Application -> IO ()Source