From 8d55d8b6be8731d37ccf6a29127b3a91a8319d0b Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sat, 10 Apr 2021 22:04:44 +0200 Subject: feat(unstable): ALPN config in listenTls (#10065) This commit adds the ability for users to configure ALPN protocols when calling `Deno.listenTls`. --- cli/dts/lib.deno.unstable.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/dts/lib.deno.unstable.d.ts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index ffe80eab7..9113d38c7 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1001,6 +1001,16 @@ declare namespace Deno { options?: StartTlsOptions, ): Promise; + export interface ListenTlsOptions { + /** **UNSTABLE**: new API, yet to be vetted. + * + * Application-Layer Protocol Negotiation (ALPN) protocols to announce to + * the client. If not specified, no ALPN extension will be included in the + * TLS handshake. + */ + alpnProtocols?: string[]; + } + /** **UNSTABLE**: The `signo` argument may change to require the Deno.Signal * enum. * -- cgit v1.2.3