Files
react-native-devtools-frontend/node_modules/pac-proxy-agent
Nikolay Vitkov 95ea045b3e Update mocha to v11
Bug: none
Change-Id: I48e5e8df59c369ef8bea00bdaa7417f65f24b783
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6494701
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2025-05-01 23:10:37 -07:00
..
2025-05-01 23:10:37 -07:00
2024-08-02 09:19:05 +00:00
2025-05-01 23:10:37 -07:00
2024-08-02 09:19:05 +00:00

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);
});