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
- Alphabetic
- By Inheritance
- Cookie
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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.
- abstract def content: String
-
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.
-
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.
- abstract def name: String
Concrete 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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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.
-
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.
-
def
toResponse: Cookie.Response
Converts the cookie to a response cookie, using, if necessary, default values for all the parameters of a response cookie.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )