Request

zio.http.Cookie$.Request
See theRequest companion object
final case class Request(name: String, content: String) extends Cookie

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Cookie
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

override 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. 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

Definition Classes
def unSign(secret: String): Option[Request]

Un-signs cookie content with a secret and returns an unsigned cookie.

Un-signs cookie content with a secret and returns an unsigned cookie.

Attributes

override def withContent(content: String): Request

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

Definition Classes
override def withName(name: String): Request

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

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

Attributes

Definition Classes

Inherited 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

Inherited from:
Cookie

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

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

Inherited from:
Cookie
def toResponse(domain: Option[String], path: Option[Path], isSecure: Boolean, isHttpOnly: Boolean, maxAge: Option[Duration], sameSite: Option[SameSite]): Response

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.

Attributes

Inherited from:
Cookie

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

Inherited from:
Cookie