W3cubDocs

/Deno

Deno.listenTls

Listen announces on the local transport address over TLS (transport layer security).

const lstnr = Deno.listenTls({ port: 443, certFile: "./server.crt", keyFile: "./server.key" });

Requires allow-net permission.

function listenTls(options: ListenTlsOptions): TlsListener;
listenTls(options: ListenTlsOptions): TlsListener

Parameters

Return Type

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.listenTls