Cookie

@Serializable
data class Cookie(val name: String, val value: String, val domain: String, val path: String, val expires: Double, val size: Int, val httpOnly: Boolean, val secure: Boolean, val session: Boolean, val sameSite: Network.CookieSameSite? = null, val priority: Network.CookiePriority, val sameParty: Boolean, val sourceScheme: Network.CookieSourceScheme, val sourcePort: Int, val partitionKey: Network.CookiePartitionKey? = null, val partitionKeyOpaque: Boolean? = null)

Cookie object

Constructors

Link copied to clipboard
constructor(name: String, value: String, domain: String, path: String, expires: Double, size: Int, httpOnly: Boolean, secure: Boolean, session: Boolean, sameSite: Network.CookieSameSite? = null, priority: Network.CookiePriority, sameParty: Boolean, sourceScheme: Network.CookieSourceScheme, sourcePort: Int, partitionKey: Network.CookiePartitionKey? = null, partitionKeyOpaque: Boolean? = null)

Properties

Link copied to clipboard

Cookie domain.

Link copied to clipboard

Cookie expiration date as the number of seconds since the UNIX epoch.

Link copied to clipboard

True if cookie is http-only.

Link copied to clipboard

Cookie name.

Link copied to clipboard

Cookie partition key.

Link copied to clipboard

True if cookie partition key is opaque.

Link copied to clipboard

Cookie path.

Link copied to clipboard

Cookie Priority

Link copied to clipboard

True if cookie is SameParty.

Link copied to clipboard

Cookie SameSite type.

Link copied to clipboard

True if cookie is secure.

Link copied to clipboard

True in case of session cookie.

Link copied to clipboard
val size: Int

Cookie size.

Link copied to clipboard

Cookie source port. Valid values are {-1, 1, 65535}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.

Link copied to clipboard

Cookie source scheme type.

Link copied to clipboard

Cookie value.