An open API service indexing awesome lists of open source software.

https://github.com/suhdev/ajaxer

A browser http client library that abstracts AJAX functionality with support for cancellation.
https://github.com/suhdev/ajaxer

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# jaxer

An HttpClient library to abstract AJAX functionality with support for cancellation.

```typescript

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

```