happstack-server-6.5.1: Web related tools and services.

Safe HaskellNone

Happstack.Server.Internal.TLS

Description

core functions and types for HTTPS support

Synopsis

Documentation

data TLSConf Source

configuration for using https:

Constructors

TLSConf 

Fields

tlsPort :: Int
 
tlsCert :: FilePath
 
tlsKey :: FilePath
 

data HTTPS Source

record that holds the Socket and SSLContext needed to start the https: event loop. Used with simpleHTTPWithSocket'

see also: httpOnSocket

Constructors

HTTPS 

Fields

httpsSocket :: Socket
 
sslContext :: SSLContext
 

httpsOnSocketSource

Arguments

:: FilePath

path to ssl certificate

-> FilePath

path to ssl private key

-> 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

acceptTLS :: HTTPS -> IO (SSL, HostName, PortNumber)Source