/ajaxer

A browser http client library that abstracts AJAX functionality with support for cancellation.

Primary LanguageTypeScript

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)
});