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.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Members list
Value members
Abstract methods
Returns a new cookie derived from this one, but where the content of the cookie is set to the specified value.
Returns a new cookie derived from this one, but where the content of the cookie is set to the specified value.
Attributes
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.
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.
Attributes
Concrete methods
Encodes the cookie into a string, or fails with an exception if there was a problem during encoding. This encoding method performs no validation.
Encodes the cookie into a string, or fails with an exception if there was a problem during encoding. This encoding method performs no validation.
Attributes
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.
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.
Attributes
Converts the cookie to a response cookie, using, if necessary, default values for all the parameters of a response cookie.
Converts the cookie to a response cookie, using, if necessary, default values for all the parameters of a response cookie.
Attributes
Converts the cookie to a response cookie, using the specified values only if this cookie is a request cookie.
Converts the cookie to a response cookie, using the specified values only if this cookie is a request cookie.