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