data class SetCookieRequest
(source)
Represents request frame that can be used with Network.setCookie method call.
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
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 method call. |
val domain: String?
Cookie domain. |
|
val expires: TimeSinceEpoch?
Cookie expiration date, session cookie if not set |
|
val httpOnly: Boolean?
True if cookie is http-only. |
|
val name: String
Cookie name. |
|
val path: String?
Cookie path. |
|
val sameSite: CookieSameSite?
Cookie SameSite type. |
|
val secure: Boolean?
True if cookie is secure. |
|
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. |
|
val value: String
Cookie value. |