data class Cookie
Represents a cookie with name, content and a set of settings such as expiration, visibility and security. A cookie with neither expires nor maxAge is a session cookie.
Cookie(name: String, value: String, encoding: CookieEncoding = CookieEncoding.URI_ENCODING, maxAge: Int = 0, expires: GMTDate? = null, domain: String? = null, path: String? = null, secure: Boolean = false, httpOnly: Boolean = false, extensions: Map<String, String?> = emptyMap())
Represents a cookie with name, content and a set of settings such as expiration, visibility and security. A cookie with neither expires nor maxAge is a session cookie. |
val domain: String?
for which it is set |
|
val encoding: CookieEncoding
|
|
val expires: GMTDate?
date when it expires |
|
val extensions: Map<String, String?>
additional cookie extensions |
|
val httpOnly: Boolean
only transfer cookie over HTTP, no access from JavaScript |
|
val maxAge: Int
number of seconds to keep cookie |
|
val name: String |
|
val path: String?
for which it is set |
|
val secure: Boolean
send it via secure connection only |
|
val value: String |
fun |