Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.HttpClient

UNSTABLE: New API, yet to be vetted. A custom HttpClient for use with fetch.

const caCert = await Deno.readTextFile("./ca.pem");
const client = Deno.createHttpClient({ caCerts: [ caCert ] });
const req = await fetch("https://myserver.com", { client });
class HttpClient {
rid: number;
 
close(): void;
}

§Properties

§
rid: number
[src]

§Methods

§
close(): void
[src]