instance method
[]
Ruby on Rails 7.0.10
Since v3.0.20Signature
[](key)
Returns the value for the given key mapped to @env.
Parameters
-
keyreq
Source
# File actionpack/lib/action_dispatch/http/headers.rb, line 59
def [](key)
@req.get_header env_name(key)
end
Defined in actionpack/lib/action_dispatch/http/headers.rb line 59
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Headers