API Docs for: 1.0.8
Show:

Request Class

Constructor

Request

(
  • baseUri
  • xhr
  • [options={}]
)

Parameters:

  • baseUri String

    Base URI

  • xhr Object

    XMLHttpRequest constructor

  • [options={}] Object optional

    Options

    • [localtimeOffsetMsec] Number optional

      Local time offset with the remote auth server's clock

Item Index

Methods

Methods

send

(
  • path
  • method
  • credentials
  • jsonPayload
  • [options={}]
)
Promise

Parameters:

  • path String

    Request path

  • method String

    HTTP Method

  • credentials Object

    HAWK Headers

  • jsonPayload Object

    JSON Payload

  • [options={}] Object optional

    Options

    • [retrying] String optional

      Flag indicating if the request is a retry

    • [headers] Array optional

      A set of extra headers to add to the request

Returns:

Promise:

A promise that will be fulfilled with JSON xhr.responseText of the request