node-red-contrib-bulk-http 1.0.0

Node-RED node that allows making bulk http requests.

npm install node-red-contrib-bulk-http

Node-RED node that allows making bulk http requests.

Inputs

: payload (object) : the payload of the message to publish.

Outputs

  1. 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.

References

Node Info

Version: 1.0.0
Updated 2 months, 2 weeks ago
License: ISC
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

1 in the last week

Nodes

  • bulk-http

Keywords

  • node-red
  • http
  • axios
  • request
  • fetch

Maintainers