class HTTP::Response::IoBody
def readall
def readall fail StateError, "body is being streamed" unless @streaming.nil? @streaming = false "".tap do |buf| buf << stream.read until stream.eof? end end
def readall fail StateError, "body is being streamed" unless @streaming.nil? @streaming = false "".tap do |buf| buf << stream.read until stream.eof? end end