TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
919 stars 239 forks source link

Where is `callback` actually called? #101

Closed plmrry closed 4 years ago

plmrry commented 4 years ago

The comment above the agent's callback function reads:

Called when the node-core HTTP client library is creating a new HTTP request.

I'm wondering where callback is actually called (within the node-core HTTP library).

I was expecting to see it here but I don't.

plmrry commented 4 years ago

Oh I see, it's using agent-base, which uses callback.