class Async::HTTP::Protocol::HTTP2::Output

def passthrough(task)

Reads chunks from the given body and writes them to the stream as fast as possible.
def passthrough(task)
	task.annotate("Writing #{@body} to #{@stream}.")
	
	while chunk = @body&.read
		self.write(chunk)
		# TODO this reduces memory usage?
		# chunk.clear unless chunk.frozen?
		# GC.start
	end
	
	self.close
ensure
	@body&.close($!)
	@body = nil
end