multiple-requests-promise
v1.0.0
Published
Call multiple HTTP requests all using request-promise
Downloads
2
Readme
multiple-requests-promise
Call multiple HTTP requests all using request-promise
Why this exists?
- You may want to call multiple HTTP requests and handle response/rejection using promises.
Installation in your project
npm install multiple-requests-promise --save
Usage
var __request = require('multiple-requests-promise');
var urls = ["http://www.example.com/firts", "http://www.example.com/second", "http://www.example.com/third"];
__request(urls, 'GET', false);
Expected Output
- When Error
{
err: {
status: true,
name: '',
message: ''
}
}
- When NO Error
{
err: {
status:false
},
data: ''
}