summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-04-10 22:04:44 +0200
committerGitHub <noreply@github.com>2021-04-10 22:04:44 +0200
commit8d55d8b6be8731d37ccf6a29127b3a91a8319d0b (patch)
tree4495109b4d5a7a71d4d12fbe814292b1e5a97c6a /cli/dts/lib.deno.unstable.d.ts
parent1c6602b85b50bc45cbf8cd1422091888e1561cd8 (diff)
feat(unstable): ALPN config in listenTls (#10065)
This commit adds the ability for users to configure ALPN protocols when calling `Deno.listenTls`.
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts10
1 files changed, 10 insertions, 0 deletions
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<Conn>;
+ 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.
*