function createPacProxyAgent()

in src/agent.ts [173:186]


function createPacProxyAgent(
	resolver: FindProxyForURL,
	opts?: createPacProxyAgent.PacProxyAgentOptions
): _PacProxyAgent {
	if (!opts) {
		opts = {};
	}

	if (typeof resolver !== 'function') {
		throw new TypeError('a resolve function must be specified!');
	}

	return new _PacProxyAgent(resolver, opts);
}