SetCookieParameter

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

Constructors

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

Properties

Link copied to clipboard
val domain: String? = null

Cookie domain.

Link copied to clipboard
val expires: Double? = null

Cookie expiration date, session cookie if not set

Link copied to clipboard
val httpOnly: Boolean? = null

True if cookie is http-only.

Link copied to clipboard

Cookie name.

Link copied to clipboard

Cookie partition key. If not set, the cookie will be set as not partitioned.

Link copied to clipboard
val path: String? = null

Cookie path.

Link copied to clipboard

Cookie Priority type.

Link copied to clipboard
val sameParty: Boolean? = null

True if cookie is SameParty.

Link copied to clipboard

Cookie SameSite type.

Link copied to clipboard
val secure: Boolean? = null

True if cookie is secure.

Link copied to clipboard
val sourcePort: Int? = null

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
val url: String? = null

The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.

Link copied to clipboard

Cookie value.