README
Http-client
Running Tests:
npm install pm2 -g
npm test
Getting Started:
npm i @smarterservices/http-client --save
Usage:
var httpClient = require('http-client');
httpClient(REQUESTOBJECT,function(err,r) {
Console.log('Results returned here!')
});
The first argument passed to httpClient is a request object
Here
To find what can be passed in to this object lookThe second argument is the callback for returning the results.
Configurations
Current version of Http-client supports Retry and PostProcessing
To enable post processing pass in allow into the request object with Must and MustNot Obj.
To change the delay,retry limit or timeout go to config.json in the module folder after installation