class HTTP::Response::Streamer
def readpartial(size = nil, outbuf = nil)
def readpartial(size = nil, outbuf = nil) unless size if defined?(HTTP::Client::BUFFER_SIZE) size = HTTP::Client::BUFFER_SIZE elsif defined?(HTTP::Connection::BUFFER_SIZE) size = HTTP::Connection::BUFFER_SIZE end end chunk = @io.read size, outbuf chunk.force_encoding(@encoding) if chunk end