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