Interface: AxiosRequestorOptions
GalaChain core SDK 1.0.0-rc.8 / index / AxiosRequestorOptions
Interface: AxiosRequestorOptions
Defined in: packages/gala-core-sdk/dist/index.d.ts:1921
Options of httpRequestorFromAxios.
Properties
omitHeaders?
optionalomitHeaders?: readonlystring[]
Defined in: packages/gala-core-sdk/dist/index.d.ts:1934
Request headers NOT to hand to axios, matched case-insensitively. Default ['content-type']:
axios derives Content-Type: application/json from the object body it is given, and an
interceptor may set its own, so the SDK's copy would only be a second opinion.
rejectOnHttpError
rejectOnHttpError:
boolean
Defined in: packages/gala-core-sdk/dist/index.d.ts:1928
true: leave axios' default status validation alone, so a 4xx/5xx REJECTS through the
instance's own interceptors and the SDK rethrows what the app's error handling produced.
false: every HTTP status resolves, so the SDK classifies it itself (shadow submits,
apply-results reads); transport failures still reject.