node-red-contrib-bulk-http 1.0.0
Node-RED node that allows making bulk http requests.
Node-RED node that allows making bulk http requests.
Inputs
: payload (object) : the payload of the message to publish.
Outputs
- Standard output : payload (array) : the standard output of the operation.
HTTP request configuration
This field allows inserting JavaScript and must return a list of configuration objects from the Axios library.
return [
{
url: 'https://dummyjson.com/users',
method: 'get'
},
{
url: 'https://dummyjson.com/products',
method: 'get',
httpsAgent: new https.Agent({
rejectUnauthorized: false,
})
}
]
It has two output modes: waiting for all responses and returning a list of results, or as the responses are returned, the node returns the results. In the latter case, each response object includes an index field that matches the index of the input list. Each HTTP response contains a status
field ('success' or 'error') and a data
field with the results.