instance method
key?
Ruby on Rails 8.0.4
Since v3.0.20Signature
key?(key)
Returns true if the request has a header matching the given key parameter.
request.key? :ip_spoofing_check # => true
Parameters
-
keyreq
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 115
def key?(key)
has_header? key
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 115
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request