HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulewarp-tls-3.4.13Haskell2010

Network.Wai.Handler.WarpTLS

HTTP over TLS support for Warp via the TLS package.

If HTTP/2 is negotiated by ALPN, HTTP/2 over TLS is used. Otherwise HTTP/1.1 over TLS is used.

Support for SSL is now obsoleted.

  • 4 types
  • 21 values
  • Packagewarp-tls-3.4.13
  • Exports25
  • LanguageHaskell2010
  • LicenceMIT
  • SourceWarpTLS.hs

Runner

2 declarations

Settings

2 declarations

Smart constructors

0 declarations

From files

From memory

From references

valuetlsSettingsRef
  1. :: IORef ByteString

    Reference to certificate bytes

  2. -> IORef ByteString

    Reference to key bytes

  3. -> TLSSettings
#

Deprecated. This function was added to allow Warp to serve new certificates without restarting, but it has always behaved the same as tlsSettingsMemory. It will be removed in the next major release. To retain existing behavior, swich to tlsSettingsMemory. To dynamically update credentials, see tlsSettingsSni.

A smart constructor for TLSSettings, but uses references to in-memory representations of the certificate and key based on defaultTlsSettings.

valuetlsSettingsChainRef
  1. :: IORef ByteString

    Reference to certificate bytes

  2. -> [IORef ByteString]

    Reference to chain certificate bytes

  3. -> IORef ByteString

    Reference to key bytes

  4. -> TLSSettings
#

Deprecated. This function was added to allow Warp to serve new certificates without restarting, but it has always behaved the same as tlsSettingsChainMemory. It will be removed in the next major release. To retain existing behavior, swich to tlsSettingsChainMemory. To dynamically update credentials, see tlsSettingsSni.

A smart constructor for TLSSettings, but uses references to in-memory representations of the certificate and key based on defaultTlsSettings.

datadata CertSettings
#

Determines where to load the certificate, chain certificates, and key from.

Instances1Show
  • Show CertSettingsDefined in warp-tls-3.4.13 · Network.Wai.Handler.WarpTLS.Internal

Dynamically retrieved

Smart constructor for TLS settings that obtains its credentials during Server Name Indication. Can be used to return different credentials depending on the hostname but also to retrieve dynamically updated credentials from an IORef. Credentials can be loaded from PEM-encoded chain and key files using credentialLoadX509.

Accessors

11 declarations

Whether or not to demand a certificate from the client. If this is set to True, you must handle received certificates in a server hook or all connections will fail.

Example1 expression
tlsWantClientCert defaultTlsSettingsFalse

Since 3.0.2

The server-side hooks called by the tls package, including actions to take when a client certificate is received. See the Network.TLS module for details.

Default: defaultServerHooks

Since 3.0.2

Do we allow insecure connections with this server as well?

Example1 expression
onInsecure defaultTlsSettingsDenyInsecure "This server only accepts secure HTTPS connections."

Since 1.4.0

Exception

1 declaration

Low-level

1 declaration