美文网首页
Node.js中的可读流

Node.js中的可读流

作者: 鳌拜的弟弟熬夜 | 来源:发表于2023-07-04 10:39 被阅读0次

可读流(Readables Stream)是对提供数据的源头(Source)的抽象,可读流的实现有:

●    HTTP responses,on the client:客户端请求。

●    HTTP requests,on the server:服务端请求。

●    fs read streams:读文件。

●    zlib streams:压缩。

●    crypto streams:加密。

●    TCP sockets:TCP协议。

●    child process stdout and stderr:子进程标准输出和错误输出。

●    process.stdin:标准输入。

相关文章

网友评论

      本文标题:Node.js中的可读流

      本文链接:https://www.haomeiwen.com/subject/nyacudtx.html