class ActionDispatch::Http::Headers

def merge(headers_or_env)

headers_or_env and the original instance.
Returns a new Http::Headers instance containing the contents of
def merge(headers_or_env)
  headers = @req.dup.headers
  headers.merge!(headers_or_env)
  headers
end