JSPM

  • Created
  • Published
  • Downloads 1215
  • Score
    100M100P100Q99282F
  • License ISC

A simple to use http client built on ES6 fetch and RxJS

Package Exports

  • rxjs-http-client

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rxjs-http-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Changes!

Please update to 1.1.11 for latest stable version.

This now works as an NPM package... I apologise for anyone who's downloaded this and found that it just didn't work. This has been rectified.

Code has been reduced :) Less is more.

More work around using this library with a standard JS project

RxJS-Http-Client

A simple to use http client built on ES6 fetch and RxJS

Installing RxJS-Http-Client

You can use NPM or Yarn to install this package

yarn add rxjs-http-client
npm i rxjs-http-client

Usage

Using rxjs-http-client is relatively simple, suppose you're making a get request

    export class SomeClass {
        private _http: HttpClient;
        
        constructor() {
            this._http = new HttpClient();
            
            //because it's built on RxJS, you can open a stream
            this._http.get('some-url')
                .pipe(
                    map((responseItem: any) => // code)
                )
                .subscribe((response: any) => {
                    console.log(response)
                })
        }
    }

Issues/Requests

I'd like to hear from anyone who finds any bugs/ feature request for this library, go to The issues page