hpagent
hpagent copied to clipboard
A ready to use http and https agent for working with proxies that keeps connections alive!
Bumps [got](https://github.com/sindresorhus/got) from 11.8.5 to 12.3.1. Release notes Sourced from got's releases. v12.3.1 Don't freeze signal when freezing Options (#2100) 43b1467 https://github.com/sindresorhus/got/compare/v12.3.0...v12.3.1 v12.3.0 Add .off() method for events (#2092) 88056be...
### Summary hpagent receives a socket on proxy server response to the `CONNECT` request. On non-200 response, hpagent passes an Error to the `createConnection` callback without first destroying the socket....
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.7 to 3.2.10. Release notes Sourced from node-fetch's releases. v3.2.10 3.2.10 (2022-07-31) Bug Fixes ReDoS referrer (#1611) (2880238) v3.2.9 3.2.9 (2022-07-18) Bug Fixes Headers: don't forward secure...
I'm looking to use this package in a product, but will need support to pass `rejectUnauthorized`, cert info, etc, into the proxy itself. Right now, looking for the best approach...
Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.20.0 to 0.22.0. Release notes Sourced from tsd's releases. v0.22.0 Breaking Require Node.js 14 8ab9869 Improvements Infer value for moduleResolution tsconfig field if not set (#149) c6c2ec4...
The `ca` and `rejectUnauthorized` properties from the request options are correctly passed to the upstream HTTPS endpoints but it's currently not possible to set those for the proxy server itself...
I think it would be nice to allow the client to pass custom headers which are then sent to proxies in the connect request
This looks like a big PR but it can be summarized simply as factoring out all the repeated code in tests that cover the exact same flow but with one...
This PR adds a new property to the constructor `options`, `proxyRequestOptions`, which allows callers to provide options for the CONNECT request made against the proxy. There are various reasons to...
Currently, if a `CONNECT` to the proxy fails, the error returned is using a vanilla `Error` with string templating to add the status code https://github.com/delvedor/hpagent/blob/cc90c2b60a0b946574993d5598d93229ce452f72/index.js#L44 This means that from within...