warp-tls-3.4.13: HTTP over TLS support for Warp via the TLS package
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Handler.WarpTLS.Internal

Contents

Synopsis

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

Instances details
Show CertSettings Source # 
Instance details

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

Instances details
Show OnInsecure Source # 
Instance details

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