kst-util
Promise based HTTP client for the browser and node.js
Features
- Make XMLHttpRequests from the browser
- Make http requests from node.js
- Supports the Promise API
- Intercept request and response
- Transform request and response data
- Cancel requests
- Automatic transforms for JSON data
- Client side support for protecting against XSRF
Browser Support
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
Installing
Using npm
npm install kst-util
Using yarn
yarn add kst-util
Using bower
bower install kst-util
Using cdn
Quick Start
K
Using global variable //example K$ajax // ...
Or using in Vue
Vue //using example : this.$K