sealed trait Cookie extends AnyRef

Cookie is an immutable and type-safe representation of an HTTP cookie. There are two types of cookies: request cookies and response cookies. These can be created with the constructors in the companion object of Cookie.

Self Type
Cookie
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cookie
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def content(content: String): Cookie

    Returns a new cookie derived from this one, but where the content of the cookie is set to the specified value.

  2. abstract def content: String
  3. abstract def encodeValidate(validate: Boolean): Either[Exception, String]

    Encodes the cookie into a string, or fails with an exception if there was a problem during encoding.

    Encodes the cookie into a string, or fails with an exception if there was a problem during encoding. This encoding method performs validation as specified.

  4. abstract def name(name: String): Cookie

    Returns a new cookie derived from this one, but where the name of the cookie is set to the specified value.

  5. abstract def name: String

Concrete 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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. final def encode: Either[Exception, String]

    Encodes the cookie into a string, or fails with an exception if there was a problem during encoding.

    Encodes the cookie into a string, or fails with an exception if there was a problem during encoding. This encoding method performs no validation.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toRequest: Cookie.Request

    Converts the cookie to a request cookie.

    Converts the cookie to a request cookie. If the cookie is a response cookie, then it is converted into a request cookie by discarding everything except the name and content.

  17. def toResponse(domain: Option[String] = None, path: Option[Path] = None, isSecure: Boolean = false, isHttpOnly: Boolean = false, maxAge: Option[zio.Duration] = None, sameSite: Option[SameSite] = None): Cookie.Response

    Converts the cookie to a response cookie, using the specified values only if this cookie is a request cookie.

  18. def toResponse: Cookie.Response

    Converts the cookie to a response cookie, using, if necessary, default values for all the parameters of a response cookie.

  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped