hpagent icon indicating copy to clipboard operation
hpagent copied to clipboard

Is this a drop-in replacement for https-proxy-agent?

Open zkochan opened this issue 2 years ago • 3 comments

I am coming from this issue, where @dscalzi has suggested to used this package instead.

I use https-proxy-agent in pnpm and I wonder if it is safe to make the switch. I did try to switch it and everything seems to works. But I do see some difference between the two packages. Like I don't see in this package anything related to ALPNProtocols, like in https-proxy-agent:

https://github.com/TooTallNate/node-https-proxy-agent/blob/d0d80cc0482f20495aa8595f802e1a9f3b1b3409/src/agent.ts#L61-L65

Is this package a feature complete drop-in replacement to https-proxy-agent?

zkochan avatar Feb 17 '23 16:02 zkochan

Have you had success in using this package instead? It does seem slightly more up-to-date than TooTallNate's package. Do you happen to know if this is compatible with Node 16?

trevor-rex avatar Apr 20 '23 17:04 trevor-rex

No, I have not risked to make a switch. I have used a workaround to make https-proxy-agent work: https://github.com/pnpm/components/commit/02d17cc303c94dc7d85458fd233303edcc452c8b

zkochan avatar Apr 20 '23 19:04 zkochan

For future people finding this from Google, I found this to be a good replacement for https-proxy-agent. I was having issues with https-proxy-agent not passing the ca certificate to the CONNECT HTTP call in addition to the proxied request, which this library solved. It doesn't look like this library has been updated in awhile, but it is working for me.

scarabcoder avatar Jan 04 '24 04:01 scarabcoder