interface CookiesStorage
Storage for Cookie.
abstract suspend fun addCookie(requestUrl: Url, cookie: Cookie): Unit
|
|
abstract suspend fun get(requestUrl: Url): List<Cookie>
|
suspend fun CookiesStorage.addCookie(urlString: String, cookie: Cookie): Unit
|
class AcceptAllCookiesStorage : CookiesStorage
CookiesStorage that stores all the cookies in an in-memory map. |
|
class ConstantCookiesStorage : CookiesStorage
CookiesStorage that ignores addCookie and returns a list of specified cookies when constructed. |