Skip to content

HttpTextOptions

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

Options for httpText.

optional headers?: Record<string, string>

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


optional json?: unknown

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

Body serialized as JSON with a content-type header.


optional logger?: Logger

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


optional method?: string

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


optional retries?: number

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

Total attempts including the first (default 3).


optional signal?: AbortSignal

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

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


optional timeoutMs?: number

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

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