[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/client](../../README) / [index](../README) / RequestConfig

# Interface: RequestConfig

Defined in: [client/src/ApiClient.ts:26](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/ApiClient.ts#L26)

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: [client/src/ApiClient.ts:27](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/ApiClient.ts#L27)

***

### url

> **url**: `string`

Defined in: [client/src/ApiClient.ts:28](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/ApiClient.ts#L28)

***

### headers

> **headers**: `Record`\<`string`, `string`\>

Defined in: [client/src/ApiClient.ts:30](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/ApiClient.ts#L30)

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

***

### body

> **body**: `BodyInit` \| `undefined`

Defined in: [client/src/ApiClient.ts:32](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/ApiClient.ts#L32)

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