Standard library referenceModules
i/tls
TLS on connected byte streams.
Tls
Tls = ( Stream
Stream = (Int) TlsError
TlsError = (stage = String, reason = String) options
options = () -> ( identity
identity = (cert : BitArray, key : BitArray) -> ( connect
connect = ( accept
accept = ( dial
dial = (host, port, opts) { connect(net.connect(host, port), host, opts) } alpn
alpn = (Stream(n)) <- (raw : Tls) { read
read = (Stream(n), max) <- (raw : Tls) { write
write = (Stream(n), bytes) <- (raw : Tls) { shutdown_write
shutdown_write = (Stream(n)) <- (raw : Tls) { close
close = (Stream(n)) <- (raw : Tls) { request.await_owned(raw.close(n)) } byte_stream
byte_stream = (stream) {