class Protocol::HTTP::Body::Stream

def read_next

@raises [IOError] If the input stream was explicitly closed.
@returns [String] The next chunk of data.

Read the next chunk of data from the input stream.
def read_next
	if @input
		return @input.read
	elsif @closed_read
		raise IOError, "Stream is not readable, input has been closed!"
	end
end