BatchRequest class

A BatchRequest represents a based class for BatchDeleteRequest and BatchSetTierRequest.

Methods

getHttpRequestBody()

Get assembled HTTP request body for sub requests.

getMultiPartContentType()

Get the value of Content-Type for a batch request. The value must be multipart/mixed with a batch boundary. Example: multipart/mixed; boundary=batch_a81786c8-e301-4e42-a729-a32ca24ae252

getSubRequests()

Get sub requests that are added into the batch request.

Method Details

getHttpRequestBody()

Get assembled HTTP request body for sub requests.

function getHttpRequestBody(): string

Returns

string

getMultiPartContentType()

Get the value of Content-Type for a batch request. The value must be multipart/mixed with a batch boundary. Example: multipart/mixed; boundary=batch_a81786c8-e301-4e42-a729-a32ca24ae252

function getMultiPartContentType(): string

Returns

string

getSubRequests()

Get sub requests that are added into the batch request.

function getSubRequests(): Map<number, BatchSubRequest>

Returns

Map<number, BatchSubRequest>