RequestHandler

RequestHandler

Request handler for sending api requests

Constructor

# new RequestHandler(ServerURL)

Parameters:
Name Type Description
ServerURL String

Server URL that would be added with URI in requests

Methods

# send(uri, method, params) → {Promise.<any>}

Send a Request

Parameters:
Name Type Description
uri String

Endpoint to add with ServerURL

method String

Method to send such as GET/POST/....

params ReqParams

an Object to send to the Endpoint Such as Headers and data

Returns:
Type
Promise.<any>