Skip to content

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.

License

Notifications You must be signed in to change notification settings

seznam/IMA.js-plugin-xhr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 find the IMA.js skeleton application at https://github.com/seznam/IMA.js-skeleton or follow this link: 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.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published