Mirror: A Node.js fetch shim using built-in Request, Response, and Headers (but without native fetch)
1# fetch-nodeshim 2 3A looser implementation of `fetch` that bypasses Node.js' built-in `fetch`. 4Some implementations (specifically ones that provide undici-based shims) 5or some versions of Node.js may ship with a built-in version of `undici` 6that's older and/or missing patches. 7 8This implementation of `fetch` uses built-ins as much as possible, 9using global `Request`, `Response`, and `Headers`, whether they're provided 10by a polyfill or by Node.js itself. 11However, it's a looser and more permissive implementation that calls 12into `node:http` and `node:https` instead. 13 14Think of it as `@remix-run/web-fetch`, but lighter.