class

Amber::Router::Cookies::Store

Inherits Enumerable < Reference < Object

Constructors

new(host : Nil | String = nil, secret : String = Random::Secure.urlsafe_base64(32), secure : Bool = false)
Source

Class methods

build(request, secret)
Source
from_headers(headers)
Source

Instance methods

[](name)
Source
[]=(name, value)
Source
cookies
Source
delete(name : String, path = "/", domain : String | Nil = nil)
Source
deleted?(name)
Source
each

Must yield this collection's elements to the block.

Source
each
Source
encrypted
Source
get(name)
Source
host
Source
host=(host : String | Nil)
Source
permanent
Source
secret
Source
secure
Source
secure=(secure : Bool)
Source
set(name : String, value : String, path : String = "/", expires : Time | Nil = nil, domain : String | Nil = nil, secure : Bool = false, http_only : Bool = false, extension : String | Nil = nil)
Source
signed
Source
update(cookies)
Source
write(headers)
Source