Module: request

request

Library of methods for making requests.

Source:

Methods

<static> buildRequest(url, method, postBody, headers, requestOptions) → {Promise}

By default this will build a request of type 'application/json'. Set a Content-Type header explicitly if its supposed to be a different type.

Parameters:
Name Type Description
url String
method String
postBody Object

leave null unless PUT or POST

headers Object

leave null or empty [] if no additional headers

requestOptions Object

leave null or empty [] if no additional request optinos

Source:
Returns:

Promise

Type
Promise