summaryrefslogtreecommitdiff
path: root/ext/net/lib.deno_net.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-07-04 15:28:50 +0200
committerGitHub <noreply@github.com>2023-07-04 15:28:50 +0200
commit39872646eba1160958b6edd042be905b7cf4dd0c (patch)
tree692564fa48ade42fed29ed83fac0e9967ead509f /ext/net/lib.deno_net.d.ts
parentaaabff710f756f7dc8651b8e92e4cc5147830e49 (diff)
feat: stabilize 'alpnProtocols' setting (#19704)
Ref https://github.com/denoland/deno/issues/19685
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r--ext/net/lib.deno_net.d.ts16
1 files changed, 16 insertions, 0 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