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

module Gitlab
  module Pagination
    class OffsetHeaderBuilder
      attr_reader :request_context, :per_page, :page, :next_page, :prev_page, :total, :total_pages

      delegate :request, to: :request_context

      def initialize(request_context:, per_page:, page:, next_page:, prev_page: nil, to
    
      def execute(exclude_total_headers: false, data_without_counts: false)
        header 'X-Per-Page',    per_page.to_s
        header 'X-Page',        page.to_s
        header 'X-Next-Page',   next_page.to_s
        header 'X-Prev-Page',   prev_page.to_s
        header 'Link',          pagination_links(data_without_counts)

        return if exclude_total_headers || data_without_counts

        header 'X-Total',       total.to_s
        header 'X-Total-Pages', total_pages.to_s
      end