You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
to have fetchOptions.lookup and fetchOptions.socketPath, node should expose undici.Agent #47592
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.
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.
You can also pass in your own dispatcher to individual fetch() calls, as explained in e.g. #48977 (comment).
Thanks for looking at this issue.
Sorry for the noob question, but how can this be done without also having to import undici to get access to the Agent as Alex did in that issue? The point was not having to import undici since it is already in core.
Activity
hjain5164 commentedon Apr 18, 2023
Hi @VoltrexKeyva, I would like to work on this issue. Can you give me some guidance to proceed on this?
bnoordhuis commentedon Apr 18, 2023
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.
loynoir commentedon Apr 18, 2023
dnsandsocketare server side fetch stuff.If
dnsandsocketis non-standard tofetch, there must be something wrong or imperfect.ottob commentedon Jul 31, 2023
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
bnoordhuis commentedon Aug 1, 2023
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.
ottob commentedon Aug 1, 2023
Thanks for looking at this issue.
Sorry for the noob question, but how can this be done without also having to import
undicito get access to theAgentas Alex did in that issue? The point was not having to importundicisince it is already in core.bnoordhuis commentedon Aug 1, 2023
At least for now you can't get around importing undici into your project.