Skip to content

Interface: BatchRequestPart

Defined in: packages/core/src/batch/batch-types.ts:16

Represents a single parsed sub-request from a batch body. Produced by parseBatchBody() for individual requests and changeset sub-parts.

Properties

body?

readonly optional body?: string

Defined in: packages/core/src/batch/batch-types.ts:27

Raw body string for POST/PATCH/PUT requests, undefined for GET/DELETE


contentId?

readonly optional contentId?: string

Defined in: packages/core/src/batch/batch-types.ts:19

Content-ID header value for referencing the result within a changeset


headers

readonly headers: Readonly<Record<string, string>>

Defined in: packages/core/src/batch/batch-types.ts:25

Parsed headers from the embedded HTTP request


kind

readonly kind: "request"

Defined in: packages/core/src/batch/batch-types.ts:17


method

readonly method: string

Defined in: packages/core/src/batch/batch-types.ts:21

HTTP method: GET, POST, PATCH, PUT, DELETE


url

readonly url: string

Defined in: packages/core/src/batch/batch-types.ts:23

The URL from the embedded HTTP request line