httpJson
httpJson<
T>(url,options?):Promise<T>
Defined in: packages/core/src/utils/http.ts:15
Fetch JSON with timeout, retries, and structured errors.
Retries network failures, 429, and 502/503/504 (honoring Retry-After);
every other status throws HttpError immediately.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
Absolute request URL.
options?
Section titled “options?”HttpRequestOptions = {}
Method, headers, JSON body, timeout, retries, logger.
Returns
Section titled “Returns”Promise<T>
The parsed JSON response body.