brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 285 forks source link

Stream length? #142

Open olalonde opened 8 years ago

olalonde commented 8 years ago

Is it possible to know the size of the stream that webshot returns in advance (in advance / without consuming it)? That would help setting content-length header when streaming the response in an express route for example.

zpnk commented 8 years ago

This would be really useful. Another use case would be streaming directly to S3 where you have to specify a content-length.

olalonde commented 8 years ago

@zpnk That's the reason I need this actually :p