Fetch Mixin

The FetchMixin provides the branching behavior to use window.fetch or Ember.$.ajax when making server requests. The adapters includes this mixin by default.

These methods are _fetch and _ajax. The adapter will use Fetch or Ajax depending on the useAjax and useFetch flags. The settings default to using window.fetch. A Fetch polyfill in included.

The AuthorizationMixin provides a strategy for authorization using a token with the request headers. When settings prefer XHR, an AJAX prefilter sets up the authorization headers.

The adapter defines fetchAuthorizationHeader to set the "Authorization" request header.

Set useAjax to true if you prefer to use XHR instead of Fetch. Also a computed property useFetch determines browser support and may defer to XHR as needed.

results matching ""

    No results matching ""