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