KwikCookie

data class KwikCookie(val name: String, val value: String, val domain: String, val path: String = "/", val expires: Int? = null, val secure: Boolean = true, val httpOnly: Boolean = false)

Cookie data class for KwikWebView.

Constructors

Link copied to clipboard
constructor(name: String, value: String, domain: String, path: String = "/", expires: Int? = null, secure: Boolean = true, httpOnly: Boolean = false)

Properties

Link copied to clipboard

The domain for which the cookie is valid.

Link copied to clipboard
val expires: Int? = null

The expiration date of the cookie in milliseconds.

Link copied to clipboard
val httpOnly: Boolean = false

Whether the cookie is HTTP only (not accessible via JavaScript), default is false. Wouldn't make sense to set it to true since we're running these cookies are set from the app, not from the web server.

Link copied to clipboard

The name of the cookie.

Link copied to clipboard

The path for which the cookie is valid, default is "/".

Link copied to clipboard
val secure: Boolean = true

Whether the cookie is secure (only sent over HTTPS), default is true.

Link copied to clipboard

The value of the cookie.