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:
Antoine du Hamel
2025-07-04 18:44:16 +02:00
committed by GitHub
parent 9501c868d4
commit 00ba5ff4d0

View File

@@ -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`: