instance method
call
Ruby on Rails 7.0.10
Since v3.0.20Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 701
def call(env)
request = ActionDispatch::Request.new env
status, headers, body = @app.call(env)
if request.have_cookie_jar?
cookie_jar = request.cookie_jar
unless cookie_jar.committed?
cookie_jar.write(headers)
if headers[HTTP_HEADER].respond_to?(:join)
headers[HTTP_HEADER] = headers[HTTP_HEADER].join("\n")
end
end
end
[status, headers, body]
end
Defined in actionpack/lib/action_dispatch/middleware/cookies.rb line 701
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Cookies