Cookie

object Cookie

For a description of the behavior of apply, parse, safeApply and unsafeApply methods, see sttp.model.

Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

object SameSite
Companion
class
sealed
trait SameSite
Companion
object

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def parse(s: String): Either[String, List[Cookie]]

Parse the cookie, represented as a header value (in the format: [name]=[value]).

Parse the cookie, represented as a header value (in the format: [name]=[value]).

def safeApply(name: String, value: String): Either[String, Cookie]
def toString(cs: List[Cookie]): String
Returns

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

def unsafeApply(name: String, value: String): Cookie
Throws
IllegalArgumentException

If the cookie name or value contain illegal characters.

def unsafeParse(s: String): List[Cookie]