标签:
A Readable stream will not start emitting data until you indicate that you are ready to receive it.
Readable streams have two "modes": a flowing mode and a paused mode. When in flowing mode, data is read from the underlying system and provided to your program as fast as possible. In paused mode, you must explicitly call stream.read()
to get chunks of data out. Streams start out in paused mode.
Note: If no data event handlers are attached, and there are no pipe()
destinations, and the stream is switched into flowing mode, then data will be lost.
node的request的数据就是从这里来的。
标签:
原文地址:http://my.oschina.net/u/214483/blog/400780