Module
Node.TLS.Socket
- Package
- purescript-node-tls
- Repository
- purescript-node/purescript-node-tls
#newClientTlsSocket' Source
newClientTlsSocket' :: forall r trash. Union r trash (NewTlsSocketOptions (CreateSecureContextOptions ())) => Socket TCP -> Record r -> Effect (TlsSocket Client)
#newServerTlsSocket' Source
newServerTlsSocket' :: forall r trash. Union r trash (NewTlsSocketOptions (CreateSecureContextOptions ())) => Socket TCP -> Record r -> Effect (TlsSocket Server)
#connectClient Source
connectClient :: forall r trash. Union r trash (ConnectTlsSocketOptions Client (CreateSecureContextOptions (ConnectTcpOptions ()))) => Record r -> Effect (TlsSocket Client)
#connectServer Source
connectServer :: forall r trash. Union r trash (ConnectTlsSocketOptions Server (CreateSecureContextOptions (ConnectTcpOptions ()))) => Record r -> Effect (TlsSocket Server)
#keylogHandle Source
keylogHandle :: forall endpoint. EventHandle1 (TlsSocket endpoint) Buffer
#ocspResponseHandle Source
ocspResponseHandle :: forall endpoint. EventHandle1 (TlsSocket endpoint) Buffer
#secureContextHandle Source
secureContextHandle :: forall endpoint. EventHandle0 (TlsSocket endpoint)
#sessionHandle Source
sessionHandle :: forall endpoint. EventHandle1 (TlsSocket endpoint) Buffer
#authorizationError Source
authorizationError :: forall endpoint. TlsSocket endpoint -> Effect Foreign
#getEphemeralKeyInfo Source
getEphemeralKeyInfo :: forall endpoint. TlsSocket endpoint -> Effect (Either EphemeralKeyInfoDH EphemeralKeyInfoECDH)
#getPeerCertificate Source
getPeerCertificate :: forall endpoint. TlsSocket endpoint -> Effect Foreign
#getPeerCertificate' Source
getPeerCertificate' :: forall endpoint. TlsSocket endpoint -> Boolean -> Effect Foreign
#getPeerFinished Source
getPeerFinished :: forall endpoint. TlsSocket endpoint -> Effect (Maybe Buffer)
#getPeerX509Certificate Source
getPeerX509Certificate :: forall endpoint. TlsSocket endpoint -> Effect Foreign
API is provided here but return value is unspecified since node:crypto
bindings do not yet exist.