Package io.ktor.client.features.cookies

Types

AcceptAllCookiesStorage

class AcceptAllCookiesStorage : CookiesStorage

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

ConstantCookiesStorage

class ConstantCookiesStorage : CookiesStorage

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

CookiesStorage

interface CookiesStorage

Storage for Cookie.

HttpCookies

class HttpCookies

HttpClient feature that handles sent Cookie, and received Set-Cookie headers, using a specific storage for storing and retrieving cookies.

Extensions for External Classes

kotlin.collections.List

Functions

addCookie

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

cookies

suspend fun HttpClient.cookies(url: Url): List<Cookie>

Gets all the cookies for the specified url for this HttpClient.

suspend fun HttpClient.cookies(
    urlString: String
): List<Cookie>

Gets all the cookies for the specified urlString for this HttpClient.