HttpTextOptions
Defined in: packages/core/src/utils/http.ts:96
Options for httpText.
Properties
Section titled “Properties”headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Defined in: packages/core/src/utils/http.ts:98
optionaljson?:unknown
Defined in: packages/core/src/utils/http.ts:100
Body serialized as JSON with a content-type header.
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: packages/core/src/utils/http.ts:107
method?
Section titled “method?”
optionalmethod?:string
Defined in: packages/core/src/utils/http.ts:97
retries?
Section titled “retries?”
optionalretries?:number
Defined in: packages/core/src/utils/http.ts:104
Total attempts including the first (default 3).
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/core/src/utils/http.ts:106
Aborts the request (and any further retry) when it fires.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: packages/core/src/utils/http.ts:102
Per-attempt timeout in milliseconds (default 30s).