Cookie
data class Cookie(name: String, value: String, encoding: CookieEncoding, maxAge: Int, expires: GMTDate?, domain: String?, path: String?, secure: Boolean, httpOnly: Boolean, extensions: Map<String, String?>)
Content copied to clipboard
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.
Constructors
Link copied to clipboard
fun 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())
Content copied to clipboard