Function: batchOperationHeaders()
batchOperationHeaders(
inherited,partHeaders,hasBody):Record<string,string>
Defined in: batch/batch-dispatch.ts:144
The request headers of one batch operation: the inherited 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>