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

Deno.createHttpClient

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

const caCert = await Deno.readTextFile("./ca.pem");
const client = Deno.createHttpClient({ caCerts: [ caCert ] });
const response = await fetch("https://myserver.com", { client });
const client = Deno.createHttpClient({ proxy: { url: "http://myproxy.com:8080" } });
const response = await fetch("https://myserver.com", { client });
function createHttpClient(options: CreateHttpClientOptions): HttpClient;