nfriedly / node-unblocker

Web proxy for evading internet censorship, and general-purpose Node.js library for proxying and rewriting remote webpages
https://www.npmjs.com/package/unblocker
GNU Affero General Public License v3.0
458 stars 924 forks source link

how to use node-unblocker with https-proxy-agent #254

Closed bobwatcherx closed 6 months ago

bobwatcherx commented 6 months ago

is it possible to use node-unblocker on https-proxy-agent https://www.npmjs.com/package/https-proxy-agent

example

import * as https from 'https';
import { HttpsProxyAgent } from 'https-proxy-agent';

const agent = new HttpsProxyAgent('https:// MY URL NODE-UNBLOCKER ----   And how many ports are there?     ');

https.get('https://example.com', { agent }, (res) => {
  console.log('"response" event!', res.headers);
  res.pipe(process.stdout);
});

or give me example code

nfriedly commented 6 months ago

No, I don't think so. That's for a different kind of proxy.