Node.HTTP.Secure
- Package
- purescript-node-http
- Repository
- purescript-node/purescript-node-http
This module defines low-level bindings to the Node HTTPS module.
#createServer Source
createServer :: Options SSLOptions -> (Request -> Response -> Effect Unit) -> Effect ServerCreate an HTTPS server, given the SSL options and a function to be executed when a request is received.
#SSLOptions Source
data SSLOptionsThe type of HTTPS server options
#handshakeTimeout Source
handshakeTimeout :: Option SSLOptions IntSee the node docs
#requestCert Source
requestCert :: Option SSLOptions BooleanSee the node docs
#rejectUnauthorized Source
rejectUnauthorized :: Option SSLOptions BooleanSee the node docs
#NPNProtocols Source
data NPNProtocolsThe npnProtocols option can be a String, a Buffer, a Uint8Array, or an array of any of those types.
#npnProtocols Source
npnProtocols :: Option SSLOptions NPNProtocolsSee the node docs
#ALPNProtocols Source
data ALPNProtocolsThe alpnProtocols option can be a String, a Buffer, a Uint8Array, or an array of any of those types.
#alpnProtocols Source
alpnProtocols :: Option SSLOptions ALPNProtocolsSee the node docs
#sessionTimeout Source
sessionTimeout :: Option SSLOptions IntSee the node docs
#ticketKeys Source
ticketKeys :: Option SSLOptions BufferSee the node docs
#Key Source
data KeyThe key option can be a String, a Buffer, an array of strings, or an array of buffers.
#passphrase Source
passphrase :: Option SSLOptions StringSee the node docs
#Cert Source
data CertThe cert option can be a String, a Buffer, an array of strings, or an array of buffers.
#certString Source
certString :: String -> Cert#certBuffer Source
certBuffer :: Buffer -> Cert#CA Source
data CAThe CA option can be a String, a Buffer, an array of strings, or an array of buffers.
#CRL Source
data CRLThe CRL option can be a String, a Buffer, an array of strings, or an array of buffers.
#honorCipherOrder Source
honorCipherOrder :: Option SSLOptions BooleanSee the node docs
#dhparamString Source
dhparamString :: String -> DHParam#dhparamBuffer Source
dhparamBuffer :: Buffer -> DHParam#secureProtocol Source
secureProtocol :: Option SSLOptions StringSee the node docs
#secureOptions Source
secureOptions :: Option SSLOptions IntSee the node docs
#sessionIdContext Source
sessionIdContext :: Option SSLOptions StringSee the node docs