Elixor
  • Elixor
  • Setup
  • Making a GET request
    • Why write a separate service file
    • Type-checking the response
    • Reading the full response
  • Sending data to the server
    • Adding headers
    • Making a POST request
    • Making a DELETE request
    • Making a PUT request
  • Error handling
    • Getting error details
    • retry()
  • Observables and operators
  • Requesting non-JSON data
  • Advanced Usage
    • Configuring the request
    • Debouncing requests
    • Intercepting requests and responses
    • Listening to progress events
  • Security: XSRF Protection
Powered by GitBook
On this page

Was this helpful?

Elixor

Observable ( Reactive / Rxjs ) based HTTP client for the browser , reactJs , react native and node.js

NextSetup

Last updated 6 years ago

Was this helpful?

Most front-end applications communicate with backend services over the HTTP protocol. Modern browsers support two different APIs for making HTTP requests: the XMLHttpRequest interface and the fetch() API. The Elixor offers a simplified client HTTP API for applications that rests on the XMLHttpRequest interface exposed by browsers. Additional benefits include testability features, typed request and response objects, request and response interception, Observable apis, and streamlined error handling.

Elixor supports the following features out of the box

  • Make from the browser

  • Supports JSONP

  • Intercept request and response using interceptors.

  • Cancel requests.

  • Automatically transforms for JSON data

  • Client side support for protecting against

XMLHttpRequests
XSRF