Optimized way of getting the size of a response in Ruby?

Posted by viatropos on Stack Overflow See other posts from Stack Overflow or by viatropos
Published on 2010-04-11T02:51:38Z Indexed on 2010/04/11 2:53 UTC
Read the original article Hit count: 217

Filed under:
|
|

I can do File.size(path) to get the size of a file in bytes. How do I get the size of an HTTP response without writing it to a tempfile?

© Stack Overflow or respective owner

Related posts about file

Related posts about ruby