instance method
[]=
Ruby on Rails 4.2.9
Since v4.0.13Signature
[]=(key, value)
Sets the given value for the key mapped to @env.
Parameters
-
keyreq -
valuereq
Source
# File actionpack/lib/action_dispatch/http/headers.rb, line 45
def []=(key, value)
@env[env_name(key)] = value
end
Defined in actionpack/lib/action_dispatch/http/headers.rb line 45
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Headers