AcceptAllCookiesStorage

class AcceptAllCookiesStorage : CookiesStorage

CookiesStorage that stores all the cookies in an in-memory map.

Constructors

<init>

AcceptAllCookiesStorage()

CookiesStorage that stores all the cookies in an in-memory map.

Functions

addCookie

suspend fun addCookie(requestUrl: Url, cookie: Cookie): Unit

Sets a cookie for the specified host.

get

suspend fun get(requestUrl: Url): List<Cookie>

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

Extension Functions

addCookie

suspend fun CookiesStorage.addCookie(
    urlString: String,
    cookie: Cookie
): Unit