smart-http-client
v0.0.9
Published
A http client that adds smart functionality
Downloads
3
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
####To find what can be passed in to this object look Here
The 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