axios-for-observable
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

axios-for-observable

Observable (as opposed to Promise) based HTTP client for the browser and node.js

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).

Features

  • 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

Installing

Using npm: note: axios and rxjs are peer dependencies.

$ npm install axios rxjs axios-for-observable

/axios-for-observable/

    Package Sidebar

    Install

    npm i axios-for-observable

    Weekly Downloads

    6

    Version

    0.0.9

    License

    ISC

    Unpacked Size

    10.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • breezefeng2020