pl.wendigo.chrome.api.network / CookieParam

CookieParam

data class CookieParam (source)

Cookie parameter object

Link
Network#CookieParam type documentation.

Constructors

<init>

CookieParam(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)

Cookie parameter object

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.