smart-http-client

0.0.9 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i smart-http-client

Weekly Downloads

1

Version

0.0.9

License

ISC

Last publish

Collaborators

  • jpiepkow
  • smarterservicesdev