Skip to main content
zerotal

Documentation


Documentation / zerotal / client / RequestConfig

Interface: RequestConfig

Defined in: packages/client/src/ApiClient.ts:26

The mutable request configuration passed through onRequest interceptors. Modify and return the object (or a new one) to alter the outgoing request.

Properties

method

method: string

Defined in: packages/client/src/ApiClient.ts:27


url

url: string

Defined in: packages/client/src/ApiClient.ts:28


headers

headers: Record<string, string>

Defined in: packages/client/src/ApiClient.ts:30

Merged headers — modify here to add/override per-request headers.


body

body: BodyInit | undefined

Defined in: packages/client/src/ApiClient.ts:32

The request body (serialized): JSON string, FormData, Blob, … or undefined.