summaryrefslogtreecommitdiff
path: root/ext/net/lib.deno_net.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r--ext/net/lib.deno_net.d.ts19
1 files changed, 14 insertions, 5 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts
index c019c8d61..e3051d6ad 100644
--- a/ext/net/lib.deno_net.d.ts
+++ b/ext/net/lib.deno_net.d.ts
@@ -174,13 +174,17 @@ declare namespace Deno {
* `--allow-read`.
*
* @tags allow-read
- * @deprecated This option is deprecated and will be removed in Deno 2.0.
+ * @deprecated Pass the certificate file contents directly to the
+ * {@linkcode Deno.ListenTlsOptions.cert} option instead. This option will
+ * be removed in Deno 2.0.
*/
certFile?: string;
/** Server private key file. Requires `--allow-read`.
*
* @tags allow-read
- * @deprecated This option is deprecated and will be removed in Deno 2.0.
+ * @deprecated Pass the key file contents directly to the
+ * {@linkcode Deno.ListenTlsOptions.key} option instead. This option will
+ * be removed in Deno 2.0.
*/
keyFile?: string;
@@ -197,7 +201,11 @@ declare namespace Deno {
* security).
*
* ```ts
- * const lstnr = Deno.listenTls({ port: 443, certFile: "./server.crt", keyFile: "./server.key" });
+ * using listener = Deno.listenTls({
+ * port: 443,
+ * cert: Deno.readTextFileSync("./server.crt"),
+ * key: Deno.readTextFileSync("./server.key"),
+ * });
* ```
*
* Requires `allow-net` permission.
@@ -289,8 +297,9 @@ declare namespace Deno {
/**
* Server certificate file.
*
- * @deprecated This option is deprecated and will be removed in a future
- * release.
+ * @deprecated Pass the cert file contents directly to the
+ * {@linkcode Deno.ConnectTlsOptions.caCerts} option instead. This option
+ * will be removed in Deno 2.0.
*/
certFile?: string;
/** A list of root certificates that will be used in addition to the