Deno.listenTls(options: ListenTlsOptions) : Listener
侦听通过TLS(传输层安全性)在本地传输地址上宣布。
Listen announces on the local transport address over TLS (transport layer security).
options : ListenTlsOptions
options : ListenTlsOptions
Listener
Listener
const lstnr = Deno.listenTls({ port: 443, certFile: "./server.crt", keyFile: "./server.key" });
需要提供 allow-net 权限。
Requires allow-net permission.