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!
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.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-clientUsage
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)
})
}
}