Sha256: 2d61f119e6acb88af611e4e8f2dfda11726548bf172cdc11a631f614e0e88f1d

Contents?: true

Size: 1.1 KB

Versions: 20

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

# :markup: markdown

require "rack/version"

module ActionDispatch
  module Constants
    # Response Header keys for Rack 2.x and 3.x
    if Gem::Version.new(Rack::RELEASE) < Gem::Version.new("3")
      VARY = "Vary"
      CONTENT_ENCODING = "Content-Encoding"
      CONTENT_SECURITY_POLICY = "Content-Security-Policy"
      CONTENT_SECURITY_POLICY_REPORT_ONLY = "Content-Security-Policy-Report-Only"
      LOCATION = "Location"
      FEATURE_POLICY = "Feature-Policy"
      X_REQUEST_ID = "X-Request-Id"
      X_CASCADE = "X-Cascade"
      SERVER_TIMING = "Server-Timing"
      STRICT_TRANSPORT_SECURITY = "Strict-Transport-Security"
    else
      VARY = "vary"
      CONTENT_ENCODING = "content-encoding"
      CONTENT_SECURITY_POLICY = "content-security-policy"
      CONTENT_SECURITY_POLICY_REPORT_ONLY = "content-security-policy-report-only"
      LOCATION = "location"
      FEATURE_POLICY = "feature-policy"
      X_REQUEST_ID = "x-request-id"
      X_CASCADE = "x-cascade"
      SERVER_TIMING = "server-timing"
      STRICT_TRANSPORT_SECURITY = "strict-transport-security"
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
actionpack-8.0.0 lib/action_dispatch/constants.rb
actionpack-7.2.2 lib/action_dispatch/constants.rb
actionpack-8.0.0.rc2 lib/action_dispatch/constants.rb
actionpack-7.2.1.2 lib/action_dispatch/constants.rb
actionpack-8.0.0.rc1 lib/action_dispatch/constants.rb
actionpack-7.2.1.1 lib/action_dispatch/constants.rb
actionpack-8.0.0.beta1 lib/action_dispatch/constants.rb
omg-actionpack-8.0.0.alpha9 lib/action_dispatch/constants.rb
omg-actionpack-8.0.0.alpha8 lib/action_dispatch/constants.rb
omg-actionpack-8.0.0.alpha7 lib/action_dispatch/constants.rb
omg-actionpack-8.0.0.alpha4 lib/action_dispatch/constants.rb
omg-actionpack-8.0.0.alpha3 lib/action_dispatch/constants.rb
omg-actionpack-8.0.0.alpha2 lib/action_dispatch/constants.rb
omg-actionpack-8.0.0.alpha1 lib/action_dispatch/constants.rb
actionpack-7.2.1 lib/action_dispatch/constants.rb
actionpack-7.2.0 lib/action_dispatch/constants.rb
actionpack-7.2.0.rc1 lib/action_dispatch/constants.rb
actionpack-7.2.0.beta3 lib/action_dispatch/constants.rb
actionpack-7.2.0.beta2 lib/action_dispatch/constants.rb
actionpack-7.2.0.beta1 lib/action_dispatch/constants.rb