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.7 lib/action_controller/metal/default_headers.rb
actionpack-7.0.6 lib/action_controller/metal/default_headers.rb
actionpack-7.0.5.1 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.4 lib/action_controller/metal/default_headers.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_controller/metal/default_headers.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/default_headers.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_controller/metal/default_headers.rb
actionpack-7.0.5 lib/action_controller/metal/default_headers.rb
actionpack-7.0.4.3 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.3 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.2 lib/action_controller/metal/default_headers.rb
actionpack-7.0.4.2 lib/action_controller/metal/default_headers.rb
actionpack-7.0.4.1 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7.1 lib/action_controller/metal/default_headers.rb
actionpack-6.0.6.1 lib/action_controller/metal/default_headers.rb
actionpack-7.0.4 lib/action_controller/metal/default_headers.rb
actionpack-6.1.7 lib/action_controller/metal/default_headers.rb
actionpack-6.0.6 lib/action_controller/metal/default_headers.rb
actionpack-7.0.3.1 lib/action_controller/metal/default_headers.rb
actionpack-6.1.6.1 lib/action_controller/metal/default_headers.rb