JavaScript Web APIs

Reference pages for URL, URLSearchParams, TextEncoder, TextDecoder, AbortController, Headers, Request, and Response. These are Web APIs, not ECMAScript language built-ins. Examples were checked in Node.js 22.23.3 and are not a browser visual test.

These pages document common platform Web APIs used with fetch and URL handling. They are separate from the ECMAScript built-in chapters such as Array and String. Examples run in Node.js 22, which exposes these APIs as globals. This is not a DOM test, and the examples do not send network requests. Browser-only rules such as CORS, cookies, and forbidden request headers are explained in the text where they matter, but they were not executed here.

JavaScript tutorial and built-in APIs →

APIWhat it covers
URLURL parsing, components, relative resolution, and why a successful parse is not a safety check, verified in Node.js 22.23.3.
URLSearchParamsQuery strings, repeated keys, plus encoding, and live URL.searchParams, verified in Node.js 22.23.3.
TextEncoderUTF-8 encoding, fatal decoding of invalid bytes, and streaming leftover sequences, verified in Node.js 22.23.3.
AbortControllerAbort signals, abort reasons, AbortSignal.abort, and AbortSignal.any, verified in Node.js 22.23.3, without cancelling a network request.
HeadersCase-insensitive header names, append versus set, and Node.js versus browser forbidden-header rules, verified in Node.js 22.23.3.
RequestConstructed Request and Response bodies, clone, and response.ok for 2xx only, verified in Node.js 22.23.3 without fetch or CORS.