summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/net/lib.deno_net.d.ts16
-rw-r--r--ext/net/ops_tls.rs2
2 files changed, 16 insertions, 2 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts
index ce0efdad2..214a5f14b 100644
--- a/ext/net/lib.deno_net.d.ts
+++ b/ext/net/lib.deno_net.d.ts
@@ -161,6 +161,12 @@ declare namespace Deno {
keyFile?: string;
transport?: "tcp";
+
+ /** 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[];
}
/** Listen announces on the local transport address over TLS (transport layer
@@ -243,6 +249,11 @@ declare namespace Deno {
*
* Must be in PEM format. */
caCerts?: string[];
+ /** Application-Layer Protocol Negotiation (ALPN) protocols supported by
+ * the client. If not specified, no ALPN extension will be included in the
+ * TLS handshake.
+ */
+ alpnProtocols?: string[];
}
/** Establishes a secure connection over TLS (transport layer security) using
@@ -276,6 +287,11 @@ declare namespace Deno {
*
* Must be in PEM format. */
caCerts?: string[];
+ /** 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[];
}
/** Start TLS handshake from an existing connection using an optional list of
diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs
index 7f451d0a8..fae4fb9b8 100644
--- a/ext/net/ops_tls.rs
+++ b/ext/net/ops_tls.rs
@@ -841,7 +841,6 @@ where
)?;
if let Some(alpn_protocols) = args.alpn_protocols {
- super::check_unstable2(&state, "Deno.startTls#alpnProtocols");
tls_config.alpn_protocols =
alpn_protocols.into_iter().map(|s| s.into_bytes()).collect();
}
@@ -940,7 +939,6 @@ where
)?;
if let Some(alpn_protocols) = args.alpn_protocols {
- super::check_unstable2(&state, "Deno.connectTls#alpnProtocols");
tls_config.alpn_protocols =
alpn_protocols.into_iter().map(|s| s.into_bytes()).collect();
}