RestMessageAdapter class

Constructors

RestMessageAdapter(IRequestOptions, string)

Methods

request(RestRequestType, string, any, any, Blob | Buffer)
setHeaders(string, string)

Constructor Details

RestMessageAdapter(IRequestOptions, string)

new RestMessageAdapter(configParams: IRequestOptions, connectionId?: string)

Parameters

configParams
IRequestOptions
connectionId

string

Method Details

request(RestRequestType, string, any, any, Blob | Buffer)

function request(method: RestRequestType, uri: string, queryParams?: any, body?: any, binaryBody?: Blob | Buffer)

Parameters

uri

string

queryParams

any

body

any

binaryBody

Blob | Buffer

Returns

Promise<IRestResponse>

setHeaders(string, string)

function setHeaders(key: string, value: string)

Parameters

key

string

value

string