UNPKG

http-dns-requester

Version:

A NodeJS wrapper to perform DNS resolution and HTTP/HTTPS requests with custom certificate authorities. Nice for container communication.

8 lines (7 loc) 306 B
import { Requester } from './requester'; export declare class HttpRequester extends Requester { constructor(host: string, port?: string); useProxy(proxyUrl: string): void; protected request(path: string, method: string, body: string, json: boolean): Promise<any>; private getHttpOptions; }