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

def receive_trailing_headers(headers, end_stream)

def receive_trailing_headers(headers, end_stream)
	headers.each do |key, value|
		if @trailers.include?(key)
			add_header(key, value)
		else
			raise ::Protocol::HTTP2::HeaderError, "Cannot add trailer #{key} as it was not specified as a trailer!"
		end
	end
end