RequestData

Type: Class

How to get RequestData?

JavaScript

import RequestData from 'fontoxml-connector/src/RequestData.js'

Represents data contained in a request to the CMS, to be used in the CmsClient#sendRequest and CmsClient#sendRequestToUrl methods of standardCmsClient.

Make sure to create a new instance for every request.

Methods

addHeader

Type: Function

Add a single HTTP header to the request.

Arguments

Returns

addHeaders

Type: Function

Add HTTP headers to the request by providing a key-value mapping.

Arguments

Returns

addMultipart

Type: Function

Add multipart-encoded binary data to the HTTP POST body of the request.

Arguments

Returns

addPostBody

Type: Function

Add HTTP POST data to the body of the request.

Arguments

Returns

addPostParameter

Type: Function

Add HTTP POST data to the body of the request.

Arguments

Returns

addPostParameters

Type: Function

Add HTTP POST data to the body of the request.

Arguments

Returns

addQueryParameter

Type: Function

Add a single query parameter to the request.

Arguments

Returns

addQueryParameters

Type: Function

Add query parameters to the request by providing a key-value mapping.

Arguments

Returns

setContentType

Type: Function

Set the HTTP Content-Type header value for the request.

Arguments

Returns