chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.network / SetCookieRequest

SetCookieRequest

data class SetCookieRequest

Request object containing input parameters for the NetworkDomain.setCookie command.

Constructors

<init>

Request object containing input parameters for the NetworkDomain.setCookie command.

SetCookieRequest(name: String, value: String, url: String? = null, domain: String? = null, path: String? = null, secure: Boolean? = null, httpOnly: Boolean? = null, sameSite: CookieSameSite? = null, expires: TimeSinceEpoch? = null, priority: CookiePriority? = null)

Properties

domain

Cookie domain.

val domain: String?

expires

Cookie expiration date, session cookie if not set

val expires: TimeSinceEpoch?

httpOnly

True if cookie is http-only.

val httpOnly: Boolean?

name

Cookie name.

val name: String

path

Cookie path.

val path: String?

priority

Cookie Priority type.

val priority: CookiePriority?

sameSite

Cookie SameSite type.

val sameSite: CookieSameSite?

secure

True if cookie is secure.

val secure: Boolean?

url

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

val url: String?

value

Cookie value.

val value: String