You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: domain_allowlist_entry.rb
    path of file: ./repos/gitlabhq/gems/gitlab-http/lib/gitlab/http_v2
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module HTTP_V2
    class DomainAllowlistEntry
      attr_reader :domain, :port

      def initialize(domain, port: nil)
        @domain = domain
        @port = p
    
      def initialize(domain, port: nil)
        @domain = domain
        @port = port
      end

      def match?(requested_domain, requested_port = nil)
        return false unless domain == requested_domain
        return true if port.nil?

        port == requested_port
      end
    end
  end