Module

Node.HTTP.Secure

Package
purescript-node-http
Repository
purescript-node/purescript-node-http

This module defines low-level bindings to the Node HTTPS module.

#SSLOptions Source

data SSLOptions

The type of HTTPS server options

#NPNProtocols Source

data NPNProtocols

The npnProtocols option can be a String, a Buffer, a Uint8Array, or an array of any of those types.

#ALPNProtocols Source

data ALPNProtocols

The alpnProtocols option can be a String, a Buffer, a Uint8Array, or an array of any of those types.

#PFX Source

data PFX

The PFX option can take either a String or a Buffer

#pfxString Source

#pfxBuffer Source

#Key Source

data Key

The key option can be a String, a Buffer, an array of strings, or an array of buffers.

#keyString Source

#keyBuffer Source

#keyStringArray Source

#keyBufferArray Source

#Cert Source

data Cert

The cert option can be a String, a Buffer, an array of strings, or an array of buffers.

#certString Source

#certBuffer Source

#certStringArray Source

#certBufferArray Source

#CA Source

data CA

The CA option can be a String, a Buffer, an array of strings, or an array of buffers.

#caString Source

#caBuffer Source

#caStringArray Source

#caBufferArray Source

#CRL Source

data CRL

The CRL option can be a String, a Buffer, an array of strings, or an array of buffers.

#crlString Source

#crlBuffer Source

#crlStringArray Source

#crlBufferArray Source

#DHParam Source

data DHParam

The DHParam option can take either a String or a Buffer

#dhparamString Source

#dhparamBuffer Source

#createServer Source

createServer :: forall eff. Options SSLOptions -> (Request -> Response -> Eff (http :: HTTP | eff) Unit) -> Eff (http :: HTTP | eff) Server

Create an HTTPS server, given the SSL options and a function to be executed when a request is received.