HttpRequestOptions
Defined in: packages/core/src/utils/http.ts:77
Options for httpJson.
Properties
Section titled “Properties”
optionalform?: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).
headers?
Section titled “headers?”
optionalheaders?:Record<string,string>
Defined in: packages/core/src/utils/http.ts:79
optionaljson?:unknown
Defined in: packages/core/src/utils/http.ts:81
Body serialized as JSON with a content-type header.
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: packages/core/src/utils/http.ts:90
method?
Section titled “method?”
optionalmethod?:string
Defined in: packages/core/src/utils/http.ts:78
retries?
Section titled “retries?”
optionalretries?:number
Defined in: packages/core/src/utils/http.ts:87
Total attempts including the first (default 3).
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/core/src/utils/http.ts:89
Aborts the request (and any further retry) when it fires.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: packages/core/src/utils/http.ts:85
Per-attempt timeout in milliseconds (default 30s).