Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions doc/api/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,25 @@ 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.

### Differences from the Web Standard `fetch()`

Node.js implements `fetch()` using the **Undici** HTTP client
rather than a browser networking stack. Although the API shape
follows the WHATWG Fetch specification, some browser-specific
behaviors do not apply in Node.js environments.

Notable differences:

* Browser features such as service workers, cache modes,
and referrer policies are not supported.
* CORS restrictions do not apply in Node.js.
* Networking behavior (TLS, proxies, connection pooling)
follows Node.js rules via Undici.
* Some options accepted by browser `fetch()` may be ignored
or behave differently.
* `Request` and `Response` objects are designed for
server-side usage.

### Custom dispatcher

You can use a custom dispatcher to dispatch requests passing it in fetch's options object.
Expand Down