mockttp
Version:
Mock HTTP server for testing HTTP clients and stubbing webservices
11 lines • 461 B
TypeScript
import * as http from 'http';
import { ProxySettingSource } from './proxy-config';
export declare function getAgent({ protocol, hostname, port, tryHttp2, keepAlive, proxySettingSource }: {
protocol: 'http:' | 'https:' | 'ws:' | 'wss:' | undefined;
hostname: string;
port: number;
tryHttp2: boolean;
keepAlive: boolean;
proxySettingSource: ProxySettingSource;
}): Promise<http.Agent | undefined>;
//# sourceMappingURL=http-agents.d.ts.map