Method: Roda::RodaPlugins::Cookies::ResponseMethods#set_cookie
- Defined in:
- lib/roda/plugins/cookies.rb
#set_cookie(key, value) ⇒ Object
Set the cookie with the given key in the headers.
response.('foo', 'bar')
response.('foo', :value=>'bar', :domain=>'example.org')
26 27 28 |
# File 'lib/roda/plugins/cookies.rb', line 26 def (key, value) ::Rack::Utils.(@headers, key, value) end |