CookieWithMeta

sttp.model.headers.CookieWithMeta
See theCookieWithMeta companion object
case class CookieWithMeta(name: String, valueWithMeta: CookieValueWithMeta)

A cookie name-value pair with directives.

All String values should be already encoded (if necessary), as when serialised, they end up unmodified in the header.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def domain: Option[String]
def domain(v: Option[String]): CookieWithMeta
def expires: Option[Instant]
def expires(v: Option[Instant]): CookieWithMeta
def httpOnly: Boolean
def httpOnly(v: Boolean): CookieWithMeta
def maxAge: Option[Long]
def maxAge(v: Option[Long]): CookieWithMeta
def otherDirective(v: (String, Option[String])): CookieWithMeta
def otherDirectives: Map[String, Option[String]]
def path: Option[String]
def path(v: Option[String]): CookieWithMeta
def sameSite: Option[SameSite]
def sameSite(s: Option[SameSite]): CookieWithMeta
def secure: Boolean
def secure(v: Boolean): CookieWithMeta
override def toString: String

Attributes

Returns

Representation of the cookie as in a header value, in the format: [name]=[value]; [directive]=[value]; ....

Definition Classes
Any
def value: String
def value(v: String): CookieWithMeta

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product