cyberneticlibrary

HTTP proxy agent for HTTPS

https-proxy-agentskillsetup L10
TooTallNate/proxy-agents
What it does

Connect HTTPS requests through HTTP proxy via CONNECT tunneling

Best for

Route HTTPS and WebSocket connections through corporate proxies in Node.js

Inputs
  • · Proxy URL (http://proxy:port)
  • · optional: headers object for CONNECT request
Outputs
  • · http.Agent subclass for Node.js https module
Requires
  • · Node.js https module
  • · HTTP proxy server supporting CONNECT method
Preconditions

Node.js environment; HTTP proxy available; proxy accessible from client

Failure modes

Proxy authentication failure; CONNECT method not supported; proxy timeout

Trust signals
  • · Implements standard CONNECT HTTP method
  • · Works with ws (WebSocket) library
  • · Published npm package