CookiesStorage

interface CookiesStorage : Closeable

Storage for Cookie.

Functions

Link copied to clipboard
abstract suspend fun addCookie(requestUrl: Url, cookie: Cookie)

Sets a cookie for the specified host.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract suspend fun get(requestUrl: Url): List<Cookie>

Gets a map of String to Cookie for a specific host.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
suspend fun CookiesStorage.addCookie(urlString: String, cookie: Cookie)

Add cookie with key urlString to storage.