npm.io
0.0.31 • Published 1 year ago

mtm-http

Licence
LGPL-3.0
Version
0.0.31
Deps
2
Size
43 kB
Vulns
0
Weekly
0

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 { MtmHttp } 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);
	});