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: headers.rb
    path of file: ./repos/aws-sdk-ruby/gems/aws-sdk-core/lib/aws-sdk-core/rest/response
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'time'
require 'base64'

module Aws
  module Rest
    module Response
      class Headers

        include Seahorse::
    
        def apply(http_resp, target)
          headers = http_resp.headers
          @rules.shape.members.each do |name, ref|
            case ref.location
            when 'header' then extract_header_value(headers, name, ref, target)
            when 'headers' then extract_header_map(headers, name, ref, target)
            end
          end