Skip to main content
interface Deno.HttpClient
implements Disposable

A custom HttpClient for use with fetch function. This is designed to allow custom certificates or proxies to be used with fetch().


Example 1

const caCert = await Deno.readTextFile("./ca.pem");
const client = Deno.createHttpClient({ caCerts: [ caCert ] });
const req = await fetch("", { client });


rid: number

The resource ID associated with the client.


close(): void

Close the HTTP client.