trait CookieBaker[T <: AnyRef] extends AnyRef
- Alphabetic
- By Inheritance
- CookieBaker
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- def decodeCookieToMap(cookie: Option[Cookie]): Map[String, String]
Decodes the data from a
Cookie
. - def decodeFromCookie(cookie: Option[Cookie]): T
Decodes the data from a
Cookie
. - def discard: DiscardingCookie
- def domain: Option[String]
The cookie domain.
The cookie domain. Defaults to None.
- def encodeAsCookie(data: T): Cookie
Encodes the data as a
Cookie
. - def httpOnly: Boolean
true
if the Cookie should have the httpOnly flag, disabling access from Javascript.true
if the Cookie should have the httpOnly flag, disabling access from Javascript. Defaults to true. - def isSigned: Boolean
true
if the Cookie is signed.true
if the Cookie is signed. Defaults to false. - def maxAge: Option[Int]
The cookie expiration date in seconds,
None
for a transient cookie - def path: String
The cookie path.
- def sameSite: Option[SameSite]
The value of the SameSite attribute of the cookie.
The value of the SameSite attribute of the cookie. Defaults to no SameSite.
- def secure: Boolean
true
if the Cookie should have the secure flag, restricting usage to https.true
if the Cookie should have the secure flag, restricting usage to https. Defaults to false.
Trait that should be extended by the Cookie helpers.