instance method
key?
Ruby on Rails 7.1.6
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 106
def key?(key)
has_header? key
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 106
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request