@ima/plugin-xhr

3.0.1 • Public • Published

@ima/plugin-xhr

Build Status npm License

Helper plugin simplifying the usage of the XMLHttpRequest API. This plugin is meant to be used only at the client side and only where the fetch API is insufficient at the moment.

You can visit our site https://imajs.io.

Installation

npm install @ima/plugin-xhr --save
// /app/build.js

var vendors = {
	common: [
		'@ima/plugin-xhr'
	]
};

/*
The XHR plugin is now available like this:

import { XHR, defaultDependencies } from '@ima/plugin-xhr';
*/
// /app/config/bind.js
import { XHR, defaultDependencies } from '@ima/plugin-xhr';

oc.inject(XHR, defaultDependencies);

Usage

The API is mostly compatible with the IMA's HTTP Agent. For details, please see the API documentation.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @ima/plugin-xhr

      Weekly Downloads

      3

      Version

      3.0.1

      License

      MIT

      Unpacked Size

      41.4 kB

      Total Files

      7

      Last publish

      Collaborators

      • corvidism
      • mjancarik
      • filipoliko
      • matej.marcisovsky
      • jsimck
      • hartja
      • zdenek.lastuvka
      • jan.kucera
      • ondrej.sliva