Module: Lotus::Action::Cookies
- Defined in:
- lib/lotus/action/cookies.rb
Overview
Cookies API
This module isn’t included by default.
Instance Method Summary collapse
-
#cookies ⇒ Lotus::Action::CookieJar
protected
Gets the cookies from the request and expose them as an Hash.
-
#finish ⇒ Object
protected
private
Finalize the response by flushing cookies into the response.
Instance Method Details
#cookies ⇒ Lotus::Action::CookieJar (protected)
Gets the cookies from the request and expose them as an Hash
55 56 57 |
# File 'lib/lotus/action/cookies.rb', line 55 def @cookies ||= CookieJar.new(@_env.dup, headers) end |
#finish ⇒ Object (protected)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Finalize the response by flushing cookies into the response
22 23 24 25 |
# File 'lib/lotus/action/cookies.rb', line 22 def finish super .finish end |