Spec-Zone.ru › Deno 1

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

options: ListenTlsOptions

Return Type

TlsListener

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API