The fetch to use — adapters expose an injectable config.fetch for tests.
Optionalinit: RequestInitOptionalinit: RequestInitBuilds the error thrown on transport failure. timedOut is true when the
exchange was aborted (timeout or external signal) rather than failing on
its own — adapters use it to keep their exact user-facing messages
("X did not respond within Nms." vs "Could not reach X.").
OptionalsignalOptional external cancellation, linked to the same internal abort.
Abort the whole exchange after this many milliseconds. The timer stays
armed until the BODY is read — a response can stall after its headers
arrive, and response.text() would otherwise wait forever.
REST transport primitives shared by the fetch-based server adapters. These are deliberately NOT a client: authentication, request envelopes, and error mapping stay in each adapter — only the transport mechanics (one timeout covering headers AND body, transient-only retries with backoff, tolerant JSON parsing) live here.