0.0.2 • Published 4 years ago

mehttp v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

myrequest

Http Utilities for Get and Post

Insatllation

npm install myrequest --save

Usage

const myRequest = require('./ours/myrequest')

const indy = new myRequest('localhost', 8083);

indy.Get('/indy/info').then(result => console.dir('Indy is running'))

                  .catch(err => console.log(`Error on Indy: ${err}`))

const fabric = new myRequest('localhost', 7061);

fabric.Post('/register', {"device_id": "ttdata"}).then(result => console.dir('Fabric is running'))

.catch(err => console.log(Error on Fabric: ${err}))