-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
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
to have fetchOptions.lookup
and fetchOptions.socketPath
, node should expose undici.Agent
#47592
Comments
Hi @VoltrexKeyva, I would like to work on this issue. Can you give me some guidance to proceed on this? |
I don't think node should be exposing all kinds of non-standard extensions. If you need more configurability, either use undici or node-fetch directly, or switch to node's own http client. |
If |
I needed this for configuring tls client certificates (mutual tls / mtls) using the new core fetch client. I think this is a quite common task for back-end initiated https requests, so it would be nice not having to install additional libraries for this. ref: #48977 |
I'd say there's zero chance of this feature request getting implemented as-is but there's an open issue about exposing undici's global dispatcher: #43187 You can also pass in your own dispatcher to individual fetch() calls, as explained in e.g. #48977 (comment). I'll go ahead and close this but keep an eye on the other issue. |
Thanks for looking at this issue. Sorry for the noob question, but how can this be done without also having to import |
At least for now you can't get around importing undici into your project. |
What is the problem this feature will solve?
builtin fetch missing
fetchOptions.lookup
andfetchOptions.socketPath
What is the feature you are proposing to solve the problem?
What alternatives have you considered?
Related
nodejs/undici#421 (comment)
The text was updated successfully, but these errors were encountered: