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
The implementation is based upon [undici](https://undici.nodejs.org), an HTTP/1.1 client written from scratch for Node.js. You can figure out which version of `undici` is bundled in your Node.js process reading the `process.versions.undici` property.
543
+
544
+
## Custom dispatcher
545
+
546
+
You can use a custom dispatcher to dispatch requests passing it in fetch's options object.
547
+
The dispatcher must be compatible with `undici`'s [`Dispatcher` class](https://undici.nodejs.org/#/docs/api/Dispatcher.md).
548
+
549
+
```js
550
+
fetch(url, { dispatcher:newMyAgent() });
551
+
```
552
+
553
+
It is possible to change the global dispatcher in Node.js using:
0 commit comments