UNPKG

mockttp-mvs

Version:

Mock HTTP server for testing HTTP clients and stubbing webservices

11 lines (10 loc) 329 B
/// <reference types="node" /> import * as dns from 'dns'; export declare type DnsLookupFunction = Omit<typeof dns.lookup, '__promisify__'>; export declare class CachedDns { private cacheDurationMs; private cache; constructor(cacheDurationMs: number); private cacheKey; lookup: DnsLookupFunction; }