http-dns-requester
Version:
A NodeJS wrapper to perform DNS resolution and HTTP/HTTPS requests with custom certificate authorities. Nice for container communication.
13 lines (12 loc) • 462 B
TypeScript
import { Requester } from './requester';
export declare class HttpsRequester extends Requester {
private CAs;
private isCAInUse;
private rejectUnauthorized;
constructor(host: string, port?: string);
useCAs(CAs: string[]): void;
useProxy(proxyUrl: string): void;
setRejectUnauthorized(value: boolean): void;
protected request(path: string, method: string, body: string, json: boolean): Promise<any>;
private getHttpsOptions;
}