@journeyapps/https-proxy-socket
Version:
Node library to enable opening Socket connections via an HTTPS proxy.
11 lines • 503 B
TypeScript
import { HttpsProxySocket } from './HttpsProxySocket.js';
import { ProxyAgent } from './ProxyAgent';
import * as http from 'node:http';
/**
* Construct an agent for http(s) requests. Mostly for testing purposes.
*
* @param proxy - the proxy to use
* @param options - to set additional TLS options for https requests, e.g. rejectUnauthorized
*/
export declare function createProxyAgent(proxy: HttpsProxySocket, options?: http.AgentOptions): ProxyAgent;
//# sourceMappingURL=createProxyAgent.d.ts.map