diff options
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index cf0470f20..584c1edc1 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 }); * ``` */ |