Cookie

sttp.model.headers.Cookie$
See theCookie companion class
object Cookie

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

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Cookie.type

Members list

Type members

Classlikes

object SameSite

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
SameSite.type
sealed trait SameSite

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Lax.type
object None.type
object Strict.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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]).

Attributes

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

Attributes

Returns

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

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

Attributes

Throws
IllegalArgumentException

If the cookie name or value contain illegal characters.

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