From b504eb94bb46e436c6ce944465e55d013031bf92 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Thu, 13 May 2021 15:45:55 +0800 Subject: [PATCH] docs(cli/dts): fix `Deno.createHttpClient` example (#10608) --- cli/dts/lib.deno.unstable.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index cf0470f20e..584c1edc1b 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1042,7 +1042,7 @@ declare namespace Deno { * A custom HttpClient for use with `fetch`. * * ```ts - * const client = new Deno.createHttpClient({ caFile: "./ca.pem" }); + * const client = new Deno.createHttpClient({ caData: await Deno.readTextFile("./ca.pem") }); * const req = await fetch("https://myserver.com", { client }); * ``` */ @@ -1064,7 +1064,7 @@ declare namespace Deno { * Create a custom HttpClient for to use with `fetch`. * * ```ts - * const client = new Deno.createHttpClient({ caFile: "./ca.pem" }); + * const client = new Deno.createHttpClient({ caData: await Deno.readTextFile("./ca.pem") }); * const req = await fetch("https://myserver.com", { client }); * ``` */