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-7.0.8.6 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.10 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.9 lib/action_controller/metal/default_headers.rb
actionpack-7.0.8.5 lib/action_controller/metal/default_headers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.0.8.4/lib/action_controller/metal/default_headers.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/default_headers.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/default_headers.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/default_headers.rb
actionpack-7.0.8.4 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.8 lib/action_controller/metal/default_headers.rb
actionpack-7.0.8.1 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.7 lib/action_controller/metal/default_headers.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/default_headers.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_controller/metal/default_headers.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_controller/metal/default_headers.rb
actionpack-7.0.8 lib/action_controller/metal/default_headers.rb
actionpack-7.0.7.2 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.6 lib/action_controller/metal/default_headers.rb
actionpack-7.0.7.1 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.5 lib/action_controller/metal/default_headers.rb