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.
- Host: GitHub
- URL: https://github.com/suhdev/ajaxer
- Owner: suhdev
- Created: 2018-03-31T17:10:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T14:04:49.000Z (almost 8 years ago)
- Last Synced: 2025-03-12T04:25:38.002Z (over 1 year ago)
- Language: TypeScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
});
```