Spaces:
Paused
Paused
|
Download backend/node_modules/pac-proxy-agent/README.md from AUXteam/UX-agent: direct link, hf CLI and curl.
- Browser
- Download file 821 Bytes
-
https://huggingface.co/spaces/AUXteam/UX-agent/resolve/main/backend/node_modules/pac-proxy-agent/README.md
- Command line
-
hf download hf://spaces/AUXteam/UX-agent/backend/node_modules/pac-proxy-agent/README.md
-
curl -L -o README.md https://huggingface.co/spaces/AUXteam/UX-agent/resolve/main/backend/node_modules/pac-proxy-agent/README.md
821 Bytes
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);
});