Deno logo
DeployManualBlogAPIStandard LibraryThird Party Modules

Deno CLI APIs

Version

latest

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
[src]

§Parameters

§
options: ListenTlsOptions
[src]

§Return Type

§
TlsListener
[src]
Manual
API
Standard Library
Third Party Modules
Benchmarks
Artwork
Blog
Translations
System Status
Companies interested in Deno