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: header_builder.rb
    path of file: ./repos/gitlabhq/lib/gitlab/pagination/keyset
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Pagination
    module Keyset
      class HeaderBuilder
        attr_reader :request_context

        delegate :param
    
        def page_href(query_params)
          base_request_uri.tap do |uri|
            uri.query = updated_params(query_params).to_query
          end.to_s
        end

        def base_request_uri
          @base_request_uri ||= URI.parse(request.url).tap do |uri|
            uri.host = Gitlab.config.gitlab.host
            uri.port = Gitlab.config.gitlab.port
          end
        end

        def updated_params(query_params)
          params.merge(query_params)
        end
      end