Request Class
Constructor
Request
(
-
baseUri
-
xhr
-
[options={}]
Parameters:
-
baseUri
StringBase URI
-
xhr
ObjectXMLHttpRequest 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:
-
path
StringRequest path
-
method
StringHTTP Method
-
credentials
ObjectHAWK Headers
-
jsonPayload
ObjectJSON 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