class Async::HTTP::Protocol::HTTP2::Stream

def finish_output(error = nil)

Called when the output terminates normally.
def finish_output(error = nil)
	trailers = @output&.trailers
	
	@output = nil
	
	if error
		send_reset_stream(::Protocol::HTTP2::Error::INTERNAL_ERROR)
	else
		# Write trailers?
		if trailers
			send_headers(nil, trailers, ::Protocol::HTTP2::END_STREAM)
		else
			send_data(nil, ::Protocol::HTTP2::END_STREAM)
		end
	end
end