ConstantCookiesStorage

class ConstantCookiesStorage(cookies: Cookie) : CookiesStorage

CookiesStorage that ignores addCookie and returns a list of specified cookies when constructed.

Constructors

Link copied to clipboard
fun ConstantCookiesStorage(vararg cookies: Cookie)

Functions

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

Sets a cookie for the specified host.

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

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