class Async::HTTP::Body::Stream
def initialize(input, output = Writable.new)
def initialize(input, output = Writable.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 end