UNPKG

mockttp-mvs

Version:

Mock HTTP server for testing HTTP clients and stubbing webservices

12 lines (11 loc) 462 B
/// <reference types="node" /> 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>;