---
url: /nestjs-odata/api/generated/functions/inheritedBatchHeaders.md
---
# Function: inheritedBatchHeaders()

> **inheritedBatchHeaders**(`batchHeaders`): `Record`<`string`, `string`>

Defined in: [batch/batch-dispatch.ts:125](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L125)

The headers of the `$batch` request that its operations inherit (compute once per batch):
credentials such as `Authorization` and `Cookie`, `Accept-Language`, `OData-MaxVersion`,
custom headers — not the ones in NOT_INHERITED, nor HTTP/2 pseudo-headers (`:path`).
Parts MUST NOT carry authentication headers (§11.7.7.1), so the credentials of the batch
request apply to every operation.

## Parameters

### batchHeaders

`Readonly`<`Record`<`string`, `string` | `string`\[] | `undefined`>>

## Returns

`Record`<`string`, `string`>
