final case class Cookie(name: String, content: String, expires: Option[Instant] = None, domain: Option[String] = None, path: Option[Path] = None, isSecure: Boolean = false, isHttpOnly: Boolean = false, maxAge: Option[Long] = None, sameSite: Option[SameSite] = None, secret: Option[String] = None) extends Product with Serializable
- Self Type
- Cookie
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Cookie
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear: Cookie
Creates a new cookie that can be used to clear the original cookie on the client.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val content: String
- val domain: Option[String]
-
def
encode: String
Converts cookie into a string
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val expires: Option[Instant]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val isHttpOnly: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isSecure: Boolean
- val maxAge: Option[Long]
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val path: Option[Path]
- val sameSite: Option[SameSite]
- val secret: Option[String]
-
def
sign(secret: String): Cookie
Signs the cookie at the time of encoding using the provided secret.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
unSign: Cookie
Removes secret in the cookie
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withContent(v: String): Cookie
Sets content in cookie
-
def
withDomain(v: String): Cookie
Sets domain in cookie
-
def
withExpiry(v: Instant): Cookie
Sets expiry in cookie
-
def
withHttpOnly: Cookie
Sets httpOnly in cookie
-
def
withMaxAge(v: Long): Cookie
Sets max-age in seconds in cookie
-
def
withMaxAge(v: zio.Duration): Cookie
Sets max-age in cookie
-
def
withPath(v: Path): Cookie
Sets path in cookie
-
def
withSameSite(v: SameSite): Cookie
Sets same-site in cookie
-
def
withSecure: Cookie
Sets secure in cookie
-
def
withoutDomain: Cookie
Removes domain from the cookie
-
def
withoutExpiry: Cookie
Removes expiry from the cookie
-
def
withoutHttpOnly: Cookie
Resets httpOnly flag in the cookie
-
def
withoutMaxAge: Cookie
Removes max-age from the cookie
-
def
withoutPath: Cookie
Removes path from the cookie
-
def
withoutSameSite: Cookie
Removes same-site from the cookie
-
def
withoutSecure: Cookie
Resets secure flag in the cookie