Share via


BatchRequest class

A BatchRequest represents a based class for BatchDeleteRequest and BatchSetTierRequest.

Constructors

BatchRequest()

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.

Constructor Details

BatchRequest()

new BatchRequest()

Method Details

getHttpRequestBody()

Get assembled HTTP request body for sub requests.

function getHttpRequestBody()

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()

Returns

string

getSubRequests()

Get sub requests that are added into the batch request.

function getSubRequests()

Returns

Map<number, BatchSubRequest>