BatchRequest class
A BatchRequest represents a based class for BatchDeleteRequest and BatchSetTierRequest.
Constructors
| Batch |
Methods
| get |
Get assembled HTTP request body for sub requests. |
| get |
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 |
| get |
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>