From 94725fced56c65da8fb13d8035de850f392bcbdb Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 4 Jul 2025 18:44:16 +0200 Subject: [PATCH] doc: fix `fetch` subsections in `globals.md` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/58933 Reviewed-By: Michaël Zasso Reviewed-By: Ulises Gascón Reviewed-By: Filip Skokan Reviewed-By: James M Snell Reviewed-By: Chemi Atlow --- doc/api/globals.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/globals.md b/doc/api/globals.md index 4aec6c2f960..55bc2c08aae 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -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`: