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
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cookie
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new 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)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clear: Cookie

    Creates a new cookie that can be used to clear the original cookie on the client.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. val content: String
  8. val domain: Option[String]
  9. def encode: String

    Converts cookie into a string

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. val expires: Option[Instant]
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. val isHttpOnly: Boolean
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val isSecure: Boolean
  16. val maxAge: Option[Long]
  17. val name: String
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val path: Option[Path]
  22. val sameSite: Option[SameSite]
  23. val secret: Option[String]
  24. def sign(secret: String): Cookie

    Signs the cookie at the time of encoding using the provided secret.

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def unSign: Cookie

    Removes secret in the cookie

  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withContent(v: String): Cookie

    Sets content in cookie

  31. def withDomain(v: String): Cookie

    Sets domain in cookie

  32. def withExpiry(v: Instant): Cookie

    Sets expiry in cookie

  33. def withHttpOnly: Cookie

    Sets httpOnly in cookie

  34. def withMaxAge(v: Long): Cookie

    Sets max-age in seconds in cookie

  35. def withMaxAge(v: zio.Duration): Cookie

    Sets max-age in cookie

  36. def withPath(v: Path): Cookie

    Sets path in cookie

  37. def withSameSite(v: SameSite): Cookie

    Sets same-site in cookie

  38. def withSecure: Cookie

    Sets secure in cookie

  39. def withoutDomain: Cookie

    Removes domain from the cookie

  40. def withoutExpiry: Cookie

    Removes expiry from the cookie

  41. def withoutHttpOnly: Cookie

    Resets httpOnly flag in the cookie

  42. def withoutMaxAge: Cookie

    Removes max-age from the cookie

  43. def withoutPath: Cookie

    Removes path from the cookie

  44. def withoutSameSite: Cookie

    Removes same-site from the cookie

  45. def withoutSecure: Cookie

    Resets secure flag in the cookie

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped