Skip to content

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.

T

string

Absolute request URL.

HttpRequestOptions = {}

Method, headers, JSON body, timeout, retries, logger.

Promise<T>

The parsed JSON response body.