| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Network.Wai.Handler.WarpTLS.Internal
Contents
Synopsis
- data CertSettings
- = CertFromFile !FilePath ![FilePath] !FilePath
 - | CertFromMemory !ByteString ![ByteString] !ByteString
 - | CertFromRef !(IORef ByteString) ![IORef ByteString] !(IORef ByteString)
 
 - data TLSSettings = TLSSettings {
- certSettings :: CertSettings
 - onInsecure :: OnInsecure
 - tlsLogging :: Logging
 - tlsAllowedVersions :: [Version]
 - tlsCiphers :: [Cipher]
 - tlsWantClientCert :: Bool
 - tlsServerHooks :: ServerHooks
 - tlsServerDHEParams :: Maybe DHParams
 - tlsSessionManagerConfig :: Maybe Config
 - tlsCredentials :: Maybe Credentials
 - tlsSessionManager :: Maybe SessionManager
 - tlsSupportedHashSignatures :: [HashAndSignatureAlgorithm]
 
 - defaultTlsSettings :: TLSSettings
 - data OnInsecure
 - getCertSettings :: TLSSettings -> CertSettings
 
Documentation
data CertSettings Source #
Determines where to load the certificate, chain certificates, and key from.
Constructors
| CertFromFile !FilePath ![FilePath] !FilePath | |
| CertFromMemory !ByteString ![ByteString] !ByteString | |
| CertFromRef !(IORef ByteString) ![IORef ByteString] !(IORef ByteString) | 
Instances
| Show CertSettings Source # | |
Defined in Network.Wai.Handler.WarpTLS.Internal Methods showsPrec :: Int -> CertSettings -> ShowS # show :: CertSettings -> String # showList :: [CertSettings] -> ShowS #  | |
data TLSSettings Source #
Settings for WarpTLS.
Constructors
| TLSSettings | |
Fields 
  | |
defaultTlsSettings :: TLSSettings Source #
Default TLSSettings. Use this to create TLSSettings with the field record name (aka accessors).
data OnInsecure Source #
An action when a plain HTTP comes to HTTP over TLS/SSL port.
Constructors
| DenyInsecure ByteString | |
| AllowInsecure | 
Instances
| Show OnInsecure Source # | |
Defined in Network.Wai.Handler.WarpTLS.Internal Methods showsPrec :: Int -> OnInsecure -> ShowS # show :: OnInsecure -> String # showList :: [OnInsecure] -> ShowS #  | |
Accessors
getCertSettings :: TLSSettings -> CertSettings Source #
Some programs need access to cert settings