Module: ActionDispatch::FeaturePolicy::Request

Included in:
Request
Defined in:
actionpack/lib/action_dispatch/http/feature_policy.rb

Constant Summary collapse

POLICY =
"action_dispatch.feature_policy"

Instance Method Summary collapse

Instance Method Details

#feature_policyObject



52
53
54
# File 'actionpack/lib/action_dispatch/http/feature_policy.rb', line 52

def feature_policy
  get_header(POLICY)
end

#feature_policy=(policy) ⇒ Object



56
57
58
# File 'actionpack/lib/action_dispatch/http/feature_policy.rb', line 56

def feature_policy=(policy)
  set_header(POLICY, policy)
end