Cookie

data class Cookie(val name: String, val value: String, val maxAge: Long? = null, val expires: Instant? = null, val domain: String? = null, val path: String? = null, val secure: Boolean = false, val httpOnly: Boolean = false, val sameSite: SameSite? = null)

Constructors

Link copied to clipboard
constructor(name: String, value: String, maxAge: Long? = null, expires: Instant? = null, domain: String? = null, path: String? = null, secure: Boolean = false, httpOnly: Boolean = false, sameSite: SameSite? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val domain: String? = null
Link copied to clipboard
val expires: Instant? = null
Link copied to clipboard
val httpOnly: Boolean = false
Link copied to clipboard
val maxAge: Long? = null
Link copied to clipboard
Link copied to clipboard
val path: String? = null
Link copied to clipboard
val sameSite: SameSite? = null
Link copied to clipboard
val secure: Boolean = false
Link copied to clipboard

Functions

Link copied to clipboard
fun domain(domain: String): Cookie
Link copied to clipboard
Link copied to clipboard
fun fullCookieString(unquotedValue: Boolean = false): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun keyValueCookieString(unquotedValue: Boolean = false): String
Link copied to clipboard
fun maxAge(seconds: Long): Cookie
Link copied to clipboard
fun path(path: String): Cookie
Link copied to clipboard
fun sameSite(sameSite: SameSite): Cookie
Link copied to clipboard
fun secure(): Cookie
Link copied to clipboard
open override fun toString(): String