1.0.8 • Published 6 years ago
jaxer v1.0.8
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)
});