append

fun append(item: Cookie)

Appends a cookie item using the Set-Cookie response header.


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())

Appends a cookie using the Set-Cookie response header from the specified parameters.


fun append(name: String, value: String, encoding: CookieEncoding = CookieEncoding.URI_ENCODING, maxAge: Int, expires: GMTDate? = null, domain: String? = null, path: String? = null, secure: Boolean = false, httpOnly: Boolean = false, extensions: Map<String, String?> = emptyMap())

Deprecated (with error)

Convert maxAge to Long

Appends a cookie using the Set-Cookie response header from the specified parameters.