instance method
merge
Ruby on Rails 4.1.16
Since v4.0.13Signature
merge(headers_or_env)
No documentation comment.
Parameters
-
headers_or_envreq
Source
# File actionpack/lib/action_dispatch/http/headers.rb, line 42
def merge(headers_or_env)
headers = Http::Headers.new(env.dup)
headers.merge!(headers_or_env)
headers
end
Defined in actionpack/lib/action_dispatch/http/headers.rb line 42
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Headers