Want to use axios in a rxjs (observable) way? There we go!
This API of axios-for-observable is same as API of axios, giving you smooth transition. So the documentation mirrors the one of axios (A few exceptions will be cleared pointed out).
- The same api with axios
- Make XMLHttpRequests from the browser
- Make http requests from node.js
- Supports the Observable API
- Intercept request and response
- Transform request and response data
- Cancel requests through unsubscribe
- Automatic transforms for JSON data
- Client side support for protecting against XSRF
- Strong support for typescript
Using npm:
note: axios
and rxjs
are peer dependencies.
$ npm install axios rxjs axios-for-observable