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

***

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

# Interface: RequestOptions

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

## Extended by

- [`GetOptions`](GetOptions)
- [`MutationOptions`](MutationOptions)

## Properties

### headers?

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

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

Extra headers merged on top of the client's default headers.

***

### init?

> `optional` **init?**: `Omit`\<`RequestInit`, `"method"` \| `"headers"` \| `"body"`\>

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

Additional `RequestInit` fields (e.g. `credentials`, `mode`, `cache`).

***

### signal?

> `optional` **signal?**: `AbortSignal`

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

Abort signal for cancellation (combined with any `timeout`).

***

### timeout?

> `optional` **timeout?**: `number`

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

Per-request timeout in ms (overrides the client default; `0` disables).

***

### retry?

> `optional` **retry?**: `number` \| `false` \| [`RetryOptions`](RetryOptions)

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

Per-request retry policy (overrides the client default; `false` disables).

***

### responseType?

> `optional` **responseType?**: `"json"` \| `"arrayBuffer"` \| `"blob"` \| `"text"` \| `"auto"`

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

How to read the response body. Default `"auto"` (JSON with text fallback).

***

### meta?

> `optional` **meta?**: (`meta`) => `void`

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

Read response metadata (status, headers) without a global interceptor.

#### Parameters

##### meta

[`ResponseMeta`](ResponseMeta)

#### Returns

`void`
