We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider this code:
async function test() { const undici = require('undici'); class CustomAgent extends undici.Agent { constructor() { super({ keepAliveTimeout: 10, keepAliveMaxTimeout: 10 }); } dispatch(options, handler) { console.log("DISPATCH"); return super.dispatch(options, handler); } } const request = new undici.Request("https://example.org", { dispatcher: new CustomAgent() }); // will make an HTTP call and print "DISPATCH" await undici.fetch(request); // will make an HTTP call, but not print "DISPATCH" await undici.fetch(request.clone()); } test();
In the code above, I would expect both fetch calls to use the dispatcher.
fetch
none.
NodeJS, Version v22.9.0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Description
Reproducible By
Consider this code:
Expected Behavior
In the code above, I would expect both
fetch
calls to use the dispatcher.Logs & Screenshots
none.
Environment
NodeJS, Version v22.9.0
Additional context
The text was updated successfully, but these errors were encountered: