Sha256: 94d71ee5975215cbbc6e9a6cedff47a294c63b3744c92d1c07de70b8cc3c6a74

Contents?: true

Size: 394 Bytes

Versions: 121

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

module ActionController
  # Allows configuring default headers that will be automatically merged into
  # each response.
  module DefaultHeaders
    extend ActiveSupport::Concern

    module ClassMethods
      def make_response!(request)
        ActionDispatch::Response.create.tap do |res|
          res.request = request
        end
      end
    end
  end
end

Version data entries

121 entries across 115 versions & 10 rubygems

Version Path
actionpack-6.1.4.4 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.4 lib/action_controller/metal/default_headers.rb
actionpack-7.0.0.rc3 lib/action_controller/metal/default_headers.rb
actionpack-6.1.4.3 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.3 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.2 lib/action_controller/metal/default_headers.rb
actionpack-6.1.4.2 lib/action_controller/metal/default_headers.rb
actionpack-7.0.0.rc2 lib/action_controller/metal/default_headers.rb
actionpack-7.0.0.rc1 lib/action_controller/metal/default_headers.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/actionpack-6.1.4.1/lib/action_controller/metal/default_headers.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/actionpack-6.1.4.1/lib/action_controller/metal/default_headers.rb
actionpack-7.0.0.alpha2 lib/action_controller/metal/default_headers.rb
actionpack-7.0.0.alpha1 lib/action_controller/metal/default_headers.rb
actionpack-6.1.4.1 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.1 lib/action_controller/metal/default_headers.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/actionpack-6.1.4/lib/action_controller/metal/default_headers.rb
actionpack-6.1.4 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4 lib/action_controller/metal/default_headers.rb
actionpack-6.0.3.7 lib/action_controller/metal/default_headers.rb
actionpack-6.1.3.2 lib/action_controller/metal/default_headers.rb