Skip to content

HttpRequestOptions

Defined in: packages/core/src/utils/http.ts:77

Options for httpJson.

optional form?: Record<string, string>

Defined in: packages/core/src/utils/http.ts:83

Body serialized as application/x-www-form-urlencoded (ignored when json is set).


optional headers?: Record<string, string>

Defined in: packages/core/src/utils/http.ts:79


optional json?: unknown

Defined in: packages/core/src/utils/http.ts:81

Body serialized as JSON with a content-type header.


optional logger?: Logger

Defined in: packages/core/src/utils/http.ts:90


optional method?: string

Defined in: packages/core/src/utils/http.ts:78


optional retries?: number

Defined in: packages/core/src/utils/http.ts:87

Total attempts including the first (default 3).


optional signal?: AbortSignal

Defined in: packages/core/src/utils/http.ts:89

Aborts the request (and any further retry) when it fires.


optional timeoutMs?: number

Defined in: packages/core/src/utils/http.ts:85

Per-attempt timeout in milliseconds (default 30s).