# File lib/restclient/payload.rb, line 114 def size if @stream.respond_to?(:size) @stream.size elsif @stream.is_a?(IO) @stream.stat.size end end