Skip to main content

Interface: RequestHeaderParts

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / RequestHeaderParts

Interface: RequestHeaderParts

Defined in: packages/gala-core-sdk/dist/index.d.ts:1850

What an SDK request adds to the headers the wire options describe.

Properties​

defaults?​

optional defaults?: Record<string, string>

Defined in: packages/gala-core-sdk/dist/index.d.ts:1854

Headers the SDK sends unless wire.headers replaces them (for example Accept).


fixed?​

optional fixed?: Record<string, string>

Defined in: packages/gala-core-sdk/dist/index.d.ts:1860

Headers that carry the request's meaning (X-Wallet-Address, X-Shadow). They come last and replace a same-named wire.headers entry, so an app's static headers can never re-attribute or un-shadow a write.


json?​

optional json?: boolean

Defined in: packages/gala-core-sdk/dist/index.d.ts:1852

The request carries a JSON body: Content-Type: application/json unless wire.headers sets one.