node-modules / urllib

Request HTTP(s) URLs in a complex world.
MIT License
729 stars 118 forks source link

怎么获取 response readable stream #338

Closed xuxucode closed 4 years ago

xuxucode commented 4 years ago

不设置 dataType 默认返回 Buffer,怎么获取 response readable stream?

atian25 commented 4 years ago

streaming: true

xuxucode commented 4 years ago

谢谢,设置 streaming: true 之后,可以通过 res.res 得到 IncomingMessage 对象