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]