class Lucky::CookieJar
- Lucky::CookieJar
- Reference
- Object
Included Modules
- Habitat::SettingsHelpers
- Habitat::TempConfig
Defined in:
lucky/cookies/cookie_jar.crConstant Summary
-
HABITAT_SETTINGS =
[{decl: on_set : (HTTP::Cookie -> HTTP::Cookie) | ::Nil, example: nil, validation: nil}] of Nil -
LUCKY_ENCRYPTION_PREFIX =
(Base64.encode("lucky")) + "--" -
MAX_COOKIE_SIZE =
4096
Class Method Summary
- .configure(&)
- .empty_jar : Lucky::CookieJar
- .from_request_cookies(cookies : HTTP::Cookies) : Lucky::CookieJar
- .settings
Instance Method Summary
- #clear : Void
- #delete(key : Key) : Nil
-
#deleted?(key : Key) : Bool
Returns
trueif the cookie has been expired, and has no value. - #destroy
- #get(key : Key) : String
- #get?(key : Key) : String | Nil
- #get_raw(key : Key) : HTTP::Cookie
- #get_raw?(key : Key) : HTTP::Cookie | Nil
- #raw : HTTP::Cookies
- #set(key : Key, value : String) : HTTP::Cookie
- #set_raw(key : Key, value : String) : HTTP::Cookie
- #settings
- #unset(*args)
- #updated : HTTP::Cookies
Class Method Detail
Instance Method Detail
Returns true if the cookie has been expired, and has no value.
Will return false if the cookie does not exist, or is valid.