@flagbit/request-observables
v1.0.5
Published
RequestObservables is a **very** thin wrapper around node's http-clients in `http` and `https` packages.
Downloads
0
Readme
Request Observables
RequestObservables is a very thin wrapper around node's http-clients in
http
and https
packages.
Install
yarn add @flagbit/request-observables
How to use?
import { RequestObservables } from '@flagbit/request-observables';
const data = {
some: 'data'
};
const url = 'http://somedomain.tld/some/path';
RequestObservables.post(url, data).subscribe(res => {
console.log('### response is', res);
});