Request Class
Constructor
Request
(
-
baseUri -
xhr -
[options={}]
Parameters:
-
baseUriStringBase URI
-
xhrObjectXMLHttpRequest constructor
-
[options={}]Object optionalOptions
-
[localtimeOffsetMsec]Number optionalLocal time offset with the remote auth server's clock
-
Item Index
Methods
Methods
send
(
Promise
-
path -
method -
credentials -
jsonPayload -
[options={}]
Parameters:
-
pathStringRequest path
-
methodStringHTTP Method
-
credentialsObjectHAWK Headers
-
jsonPayloadObjectJSON Payload
-
[options={}]Object optionalOptions
-
[retrying]String optionalFlag indicating if the request is a retry
-
[headers]Array optionalA set of extra headers to add to the request
-
Returns:
Promise:
A promise that will be fulfilled with JSON xhr.responseText of the request
