clawd/node_modules/pac-proxy-agent
Johan Jongsma 023030c035 Memory updates: corrections, email triage, heartbeat state
- Updated corrections.md with config validation principles
- Email triage rules and logs
- Infrastructure ownership documentation
- Daily memory files through Feb 1
- Heartbeat state tracking
2026-02-03 01:02:28 +00:00
..
dist Memory updates: corrections, email triage, heartbeat state 2026-02-03 01:02:28 +00:00
LICENSE Memory updates: corrections, email triage, heartbeat state 2026-02-03 01:02:28 +00:00
README.md Memory updates: corrections, email triage, heartbeat state 2026-02-03 01:02:28 +00:00
package.json Memory updates: corrections, email triage, heartbeat state 2026-02-03 01:02:28 +00:00

README.md

pac-proxy-agent

A PAC file proxy http.Agent implementation for HTTP and HTTPS

This module provides an http.Agent implementation that retreives the specified PAC proxy file and uses it to resolve which HTTP, HTTPS, or SOCKS proxy, or if a direct connection should be used to connect to the HTTP endpoint.

It is designed to be be used with the built-in http and https modules.

Example

import * as http from 'http';
import { PacProxyAgent } from 'pac-proxy-agent';

const agent = new PacProxyAgent('pac+https://cloudup.com/ceGH2yZ0Bjp+');

http.get('http://nodejs.org/api/', { agent }, (res) => {
  console.log('"response" event!', res.headers);
  res.pipe(process.stdout);
});