Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtgoitia/rx-http
https://github.com/dtgoitia/rx-http
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dtgoitia/rx-http
- Owner: dtgoitia
- Created: 2019-07-06T07:57:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T11:37:52.000Z (about 4 years ago)
- Last Synced: 2024-10-28T13:55:15.714Z (2 months ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo contains basic code to make an HTTP request using RxJS.
Using the RxJS built-in `ajax` operator:
- To run: `npm run ajax`.
- Source file: `src/ajax.ts`.
- Requires installing `xmlhttprequest`.
- Requires taking care of CORS, passing a `XMLHttpRequest` factory, etc.Using `rxios`:
- To run: `npm run rxios`.
- Source file: `src/rxios.ts`.
- Requires installing `rxjs-compat`, because the author has not updated RxJS to v6 yet. Red flag: there are few stale PRs with this changes.