
Problems undici solves
All 21 problems from undici's listing.
- Node's built-in http module is slow and awkward for making lots of outgoing requests from my service
- make thousands of HTTP requests per second from Node.js to a few backend services with connection pooling
- the fetch built into Node is stuck on an old version and I need newer fixes and options
- send fetch requests from Node.js through a corporate HTTP proxy
- make my Node app honour HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables for all fetch calls
- route Node.js HTTP traffic through a SOCKS5 proxy
- mock outgoing HTTP calls in my Node.js tests without starting a fake server
- record real API responses once and replay them in CI so tests don't hit the network
- retry failed HTTP requests from Node with backoff without wrapping every call
- cache HTTP responses in my Node service following Cache-Control and ETag rules, in memory or on disk
- Node fetch hangs or runs out of sockets because response bodies aren't consumed
- set keep-alive timeouts and per-origin connection limits for outgoing HTTP in Node
- stream a large HTTP download straight into a file in Node without buffering it all in memory
- talk HTTP to a local daemon over a Unix domain socket or Windows named pipe from Node.js
- send HTTP/2 requests from Node.js with multiplexing to an API that prefers it
- use a client certificate for mutual TLS on outgoing requests from Node
- connect to a WebSocket server from Node.js without adding the ws package
- subscribe to a server-sent events stream from a Node script
- deduplicate identical in-flight GET requests in my Node service so the upstream sees one
- trace and log every outgoing HTTP request in Node with diagnostics channels
- stop fetch connections failing on dual-stack hosts where IPv6 doesn't work