Friday, 3 August 2018

How to make many HTTP requests and write the responses to a single JSON?

I would like to make 5 HTTP requests, then once all of the HTTP requests have completed, I would like to write the results of them to a single JSON file.What would be the best way to do this? I was hoping to asynchronously make the requests, and once they are all completed perform the write operation but I don’t know if this is possible.I have been looking at promise chaining, but from my understanding that would not be asynchronous.Any input is appreciated, thank you. :)

Submitted August 03, 2018 at 12:12PM by marinom97

No comments:

Post a Comment