class Async::HTTP::Protocol::HTTP2::Response

def receive_headers(stream, headers, end_stream)

This should be invoked from the background reader, and notifies the task waiting for the headers that we are done.
def receive_headers(stream, headers, end_stream)
	headers.each do |key, value|
		if key == STATUS
			@status = value.to_i
		elsif key == REASON
			@reason = value
		else
			@headers[key] = value
		end
	end
	
	unless end_stream
		@body = @input = Body::Writable.new
	end
	
	# We are ready for processing:
	if @notification
		@notification.signal
		@notification = nil
	end
end