Class: Request

Request(method, path, timeout, ensureHttps)

Base class for all the requests

Constructor

new Request(method, path, timeout, ensureHttps)

Construct the basis of request
Parameters:
Name Type Description
method string GET/PUT/POST/DELETE
path string Path to the endpoint
timeout number Timeout in milliseconds
ensureHttps boolean If true, always use HTTPS
Source: