Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
doc: better example for http.get #9065
Affected core subsystem(s)
Description of change
I wanted to get some JSON data using Node.js, so I searched the documentation and found
I've learnt a lot from this experience, but what I really wanted was get things done and fetch JSON.
I propose replacing current example with the one that presents the most common use of that method: getting data. Also, I added information about the type of object being passed to the callback and necessity of consuming response data in it.