UNPKG

@journeyapps/https-proxy-socket

Version:

Node library to enable opening Socket connections via an HTTPS proxy.

14 lines 527 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createProxyAgent = createProxyAgent; const ProxyAgent_1 = require("./ProxyAgent"); /** * 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 */ function createProxyAgent(proxy, options) { return new ProxyAgent_1.ProxyAgent(proxy, options); } //# sourceMappingURL=createProxyAgent.js.map