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: keyset_pagination_helpers.rb
    path of file: ./repos/gitlabhq/spec/support/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module KeysetPaginationHelpers
  def pagination_links(response)
    link = response.headers['LINK']
    return unless link

    link.split(',').filter_map do |link|
      match = link.mat
    
  def pagination_links(response)
    link = response.headers['LINK']
    return unless link

    link.split(',').filter_map do |link|
      match = link.match(/<(?<url>.*)>; rel="(?<rel>\w+)"/)
      next unless match

      { url: match[:url], rel: match[:rel] }
    end
  end