https-proxy-agent
An HTTP(s) proxy http.Agent implementation for HTTPS
http.Agent implementation for HTTPSExamples
https module example
https module exampleimport * as https from 'https';
import { HttpsProxyAgent } from 'https-proxy-agent';
const agent = new HttpsProxyAgent('http://168.63.76.32:3128');
https.get('https://example.com', { agent }, (res) => {
console.log('"response" event!', res.headers);
res.pipe(process.stdout);
});ws WebSocket connection example
ws WebSocket connection exampleAPI
new HttpsProxyAgent(proxy: string | URL, options?: HttpsProxyAgentOptions)
Last updated