mtm-http
TypeScript icon, indicating that this package has built-in type declarations

0.0.30 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mtm-http

Weekly Downloads

0

Version

0.0.30

License

LGPL-3.0

Unpacked Size

137 kB

Total Files

23

Last publish

Collaborators

  • merlinthemagic