mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: fix fetch subsections in globals.md
PR-URL: https://github.com/nodejs/node/pull/58933 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
This commit is contained in:
@@ -579,7 +579,7 @@ The implementation is based upon [undici](https://undici.nodejs.org), an HTTP/1.
|
||||
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.
|
||||
|
||||
## Custom dispatcher
|
||||
### Custom dispatcher
|
||||
|
||||
You can use a custom dispatcher to dispatch requests passing it in fetch's options object.
|
||||
The dispatcher must be compatible with `undici`'s
|
||||
@@ -598,7 +598,7 @@ import { setGlobalDispatcher } from 'undici';
|
||||
setGlobalDispatcher(new MyAgent());
|
||||
```
|
||||
|
||||
## Related classes
|
||||
### Related classes
|
||||
|
||||
The following globals are available to use with `fetch`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user