module Roda::RodaPlugins::Cookies::ResponseMethods

def set_cookie(key, value)

response.set_cookie('foo', value: 'bar', domain: 'example.org')
response.set_cookie('foo', 'bar')

Set the cookie with the given key in the headers.
def set_cookie(key, value)
  value = { :value=>value } unless value.respond_to?(:keys)
  ::Rack::Utils.set_cookie_header!(@headers, key, roda_class.opts[:cookies_opts].merge(value))
end