Ende.HttpClient
class
class Ende.HttpClient implements DisposableA custom HttpClient for use with fetch function. This is
designed to allow custom certificates or proxies to be used with fetch().
Example
const caCert = await Ende.readTextFile("./ca.pem");
const client = Ende.createHttpClient({ caCerts: [ caCert ] });
const req = await fetch("https://myserver.com", { client });
Methods
close
close(): voidClose the HTTP client.
[Symbol.dispose]
[Symbol.dispose](): void