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