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.0.5.1 lib/action_controller/metal/default_headers.rb
actionpack-6.0.5 lib/action_controller/metal/default_headers.rb
actionpack-6.1.6 lib/action_controller/metal/default_headers.rb
actionpack-7.0.3 lib/action_controller/metal/default_headers.rb
actionpack-7.0.2.4 lib/action_controller/metal/default_headers.rb
actionpack-6.1.5.1 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.8 lib/action_controller/metal/default_headers.rb
actionpack-6.1.5 lib/action_controller/metal/default_headers.rb
actionpack-7.0.2.3 lib/action_controller/metal/default_headers.rb
actionpack-6.1.4.7 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.7 lib/action_controller/metal/default_headers.rb
actionpack-7.0.2.2 lib/action_controller/metal/default_headers.rb
actionpack-6.1.4.6 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.6 lib/action_controller/metal/default_headers.rb
actionpack-6.0.4.5 lib/action_controller/metal/default_headers.rb
actionpack-6.1.4.5 lib/action_controller/metal/default_headers.rb
actionpack-7.0.2.1 lib/action_controller/metal/default_headers.rb
actionpack-7.0.2 lib/action_controller/metal/default_headers.rb
actionpack-7.0.1 lib/action_controller/metal/default_headers.rb
actionpack-7.0.0 lib/action_controller/metal/default_headers.rb