jaxer
v1.0.8
Published
An http client library that abstracts AJAX functionality and supports cancellation
Downloads
1
Readme
jaxer
An HttpClient library to abstract AJAX functionality with support for cancellation.
import {AjaxClient} from 'jaxer';
var a = new AjaxClient();
a.get({
url:'/',
handler:(req)=>{
console.log('ze');
req.cancel();
}
})
.then(e=>{
console.log(e);
},e=>{
console.log('cancelled',e)
});