mtm-http
v0.0.30
Published
Downloads
11
Readme
MtmHttp
MtmHttp is a wrapper for the different http clients available
For node.js, you can use this command to install:
npm install mtm-http
import the service:
import { MtmHttpService } from "mtm-http";
USE assuming you have injected the service using the _mtmHttp variable name:
var httpObj = this._mtmHttp.getClients().getNative();
var url = "https://www.example.com/myUrl";
httpObj.getPromise(url).get().then((data) => {
console.log(data);
});