http-proxy-agent@9.1.0
Minor Changes
-
d8f2926: Adds
proxyConnectevent emission tohttp-proxy-agentfor parity withhttps-proxy-agent. The event is emitted on both the request and the agent instance when the socket connects to the proxy server. -
84e85ed: Add
onProxyAuthcallback andnegotiateoption for Kerberos/SPNEGO proxy authentication- Extract shared Negotiate/SPNEGO auth logic into new
proxy-agent-negotiatepackage - Added optional
onProxyAuthasync callback toHttpsProxyAgentandHttpProxyAgentoptions - When the proxy responds with 407 Proxy-Authentication Required, the callback is invoked with the response and auth scheme
- The callback returns headers (e.g.
Proxy-Authorization) to retry the request with - Added
negotiate: trueoption that uses thekerberospackage for automatic Negotiate/SPNEGO auth - Added
kerberosas an optional peer dependency ofproxy-agent-negotiate - Extended the
proxytest package to supportauthenticate: 'negotiate'mode for mock testing
- Extract shared Negotiate/SPNEGO auth logic into new
-
3ebf4b2: Add
proxyevent emission on the request object for all proxy agents. After the proxy connection is established, the request emits aproxyevent with{ proxy, socket }whereproxyis the proxy URL string. This is useful for debugging and logging which proxy was used for a connection.
Patch Changes
- Updated dependencies [84e85ed]
- proxy-agent-negotiate@1.1.0