1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

docs(cli/dts): fix Deno.createHttpClient example (#10608)

This commit is contained in:
Casper Beyer 2021-05-13 15:45:55 +08:00 committed by GitHub
parent 5e4764a00f
commit b504eb94bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 });
* ```
*/