-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | HTTP over SSL/TLS support for Warp via the TLS package
--   
--   HTTP over SSL/TLS support for Warp via the TLS package.
@package warp-tls
@version 1.4.1.4


-- | HTTP over SSL/TLS support for Warp via the TLS package.
module Network.Wai.Handler.WarpTLS
data TLSSettings

-- | File containing the certificate.
certFile :: TLSSettings -> FilePath

-- | File containing the key
keyFile :: TLSSettings -> FilePath

-- | 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
onInsecure :: TLSSettings -> OnInsecure

-- | The level of logging to turn on.
--   
--   Default: <a>defaultLogging</a>.
--   
--   Since 1.4.0
tlsLogging :: TLSSettings -> Logging

-- | Default <a>TLSSettings</a>. Use this to create <a>TLSSettings</a> with
--   the field record name.
defaultTlsSettings :: TLSSettings

-- | A smart constructor for <a>TLSSettings</a>.
tlsSettings :: FilePath -> FilePath -> TLSSettings

-- | An action when a plain HTTP comes to HTTP over TLS/SSL port.
data OnInsecure
DenyInsecure :: ByteString -> OnInsecure
AllowInsecure :: OnInsecure

-- | Running <a>Application</a> with <a>TLSSettings</a> and
--   <a>Settings</a>.
runTLS :: TLSSettings -> Settings -> Application -> IO ()

-- | Running <a>Application</a> with <a>TLSSettings</a> and <a>Settings</a>
--   using specified <a>Socket</a>.
runTLSSocket :: TLSSettings -> Settings -> Socket -> Application -> IO ()
data WarpTLSException
InsecureConnectionDenied :: WarpTLSException
instance Typeable WarpTLSException
instance Show WarpTLSException
instance Exception WarpTLSException
