diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-05-13 15:45:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 16:45:55 +0900 |
commit | b504eb94bb46e436c6ce944465e55d013031bf92 (patch) | |
tree | 45db9fe28ffcfeb0329a0237d411f51aaad40110 | |
parent | 5e4764a00fa9179be823a35041880e7e5518c854 (diff) |
docs(cli/dts): fix `Deno.createHttpClient` example (#10608)
-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 }); * ``` */ |