Amber::Router::Cookies::Store
Inherits Enumerable < Reference < Object
Constructors
new(host : Nil | String = nil, secret : String = Random::Secure.urlsafe_base64(32), secure : Bool = false)
SourceClass methods
build(request, secret)
Sourcefrom_headers(headers)
SourceInstance methods
[](name)
Source[]=(name, cookie : HTTP::Cookie)
Source[]=(name, value)
Sourcecookies
Sourcedeleted?(name)
Sourceeach
Sourceencrypted
Sourceget(name)
Sourcehost
Sourcepermanent
Sourcesecret
Sourcesecure
Sourceset(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)
Sourcesigned
Sourceupdate(cookies)
Sourcewrite(headers)
Sourcewrite_cookie?(cookie)
Source