pl.wendigo.chrome.api.network / SetCookieRequest

SetCookieRequest

data class SetCookieRequest (source)

Represents request frame that can be used with Network#setCookie operation call.

Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

Link
Network#setCookie method documentation.

See Also

NetworkOperations.setCookie

Constructors

<init>

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)

Represents request frame that can be used with Network#setCookie operation call.

Properties

domain

val domain: String?

Cookie domain.

expires

val expires: TimeSinceEpoch?

Cookie expiration date, session cookie if not set

httpOnly

val httpOnly: Boolean?

True if cookie is http-only.

name

val name: String

Cookie name.

path

val path: String?

Cookie path.

sameSite

val sameSite: CookieSameSite?

Cookie SameSite type.

secure

val secure: Boolean?

True if cookie is secure.

url

val url: String?

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.

value

val value: String

Cookie value.