ResponseCookies
class ResponseCookies(response: ApplicationResponse, secureTransport: Boolean)
Content copied to clipboard
Server's response cookies
Constructors
Link copied to clipboard
fun ResponseCookies(response: ApplicationResponse, secureTransport: Boolean)
Content copied to clipboard
Functions
Link copied to clipboard
Append cookie item using Set-Cookie
HTTP response header
Content copied to clipboard
fun append(name: String, value: String, encoding: CookieEncoding = CookieEncoding.URI_ENCODING, maxAge: Long = 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
Append a cookie using Set-Cookie
HTTP response header from the specified parameters
Link copied to clipboard
fun appendExpired(name: String, domain: String? = null, path: String? = null)
Content copied to clipboard
Append already expired cookie: useful to remove client cookies