1.0.7 • Published 4 years ago

elixor v1.0.7

Weekly downloads
225
License
MIT
Repository
github
Last release
4 years ago

Elixor

Documentation can be found at https://elixor.js.org/

Observable based HTTP client for the React,Browser and Node.JS

  • Make XMLHttpRequests from the browser
  • Make http requests from React , Node.JS
  • Intercept request and response using interceptors.
  • Transform request and response data
  • Cancel requests
  • Automatic transforms for JSON data
  • Client side support for protecting against XSRF

Set up

Using npm:

$ npm install elixor

Using bower:

$ bower install elixor

Example

Performing a GET Request

    
import { elixor } from 'elixor';

 elixor.get('https://jsonplaceholder.typicode.com/todos/1')
            .subscribe(r => console.log(r));
     

Performing a POST Request

import { elixor } from 'elixor';

 const opt = {
     name:'Hello World'
 };

 elixor.post('https://jsonplaceholder.typicode.com/posts',opt)
            .subscribe(r => console.log(r));
1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago