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

> **batchOperationHeaders**(`inherited`, `partHeaders`, `hasBody`): `Record`<`string`, `string`>

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

The request headers of one batch operation: the [inherited](inheritedBatchHeaders.md) ones,
overridden by the operation's own. `Content-Length` is never taken from either (the body may
have been rewritten; the dispatcher sets it from the real body) and pseudo-headers are ignored.
An operation with a body and no `Content-Type` is sent as `application/json`. The operation
always asks for `Accept-Encoding: identity`: its response is read in process.

## Parameters

### inherited

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

### partHeaders

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

### hasBody

`boolean`

## Returns

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