No tutorials come with Node.js, it looks like you're probably referring to the nodeschool.io tutorials. They have their own discussion threads hosted on GitHub here: https://github.com/nodeschool/discussions which might be a good place to ask about specific exercises in their tutorials.
To answer your question, one call to http.get does not pull any data, it creates a stream, which (generally) will eventually emit all of the data requested. If you're calling http.get multiple times, then you're creating multiple requests, each of which will stream the entire response. Hope this helps, Jimb Esser On Wednesday, August 19, 2015 at 6:51:42 PM UTC-7, Steve Litt wrote: > > Hi all, > > I was doing the "HTTP COLLECT" tutorial that comes with Node.js. I > originally had a loop to keep doing http.get() until it came back error or > end, but later removed the loop and it still worked, which implied to me > that one call to http.get() pulls *all* chunks of data from the URL. > > Does one call to http.get() pull all data chunks? > > Thanks, > > SteveT > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/cfd241fe-a327-49bb-8ff5-c16286691978%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
