Performs an HTTP fetch request with built-in timeout, JSON parsing, prefix handling, and bounded stream reading.
Automatically throws an HttpError if the response is not ok or exceeds maxBytes.
Type Parameters
T
Parameters
url: string|URL
The resource URL to fetch
init: RequestInit = ...
Optional RequestInit configuration
config: Config = ...
Optional configuration including timeout, prefix stripping, and maxBytes limit
Performs an HTTP fetch request with built-in timeout, JSON parsing, prefix handling, and bounded stream reading. Automatically throws an
HttpErrorif the response is notokor exceedsmaxBytes.