instance method
[]
Ruby on Rails 4.2.9
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 40
def [](key)
@env[env_name(key)]
end
Defined in actionpack/lib/action_dispatch/http/headers.rb line 40
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Headers