class Protocol::HTTP::Body::Stream

def initialize(input = nil, output = Buffered.new)

@parameter output [Writable] The output stream.
@parameter input [Readable] The input stream.

Initialize the stream with the given input and output.
def initialize(input = nil, output = Buffered.new)
	@input = input
	@output = output
	
	raise ArgumentError, "Non-writable output!" unless output.respond_to?(:write)
	
	# Will hold remaining data in `#read`.
	@buffer = nil
	
	@closed = false
	@closed_read = false
end