workshopper / learnyounode

Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.
Other
7.25k stars 1.84k forks source link

question 8: what does response.pipe do? #623

Closed lchalabi closed 5 years ago

lchalabi commented 6 years ago

I solved the problem but don't really understand why it works.

What does the line res.pipe(bl(function(err, data) do besides pass the return value of pipe function into the new function that takes in the parameter data?

shanmukhateja commented 5 years ago

This issue can be closed on the grounds of inactivity.

Feel free to open it at a later time if someone were to provide the solution requested.