ktor-client-core / io.ktor.client.features.cookies / HttpCookies / <init>

<init>

HttpCookies(storage: CookiesStorage, defaults: List<suspend CookiesStorage.() -> Unit>)

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

You can configure the Config.storage and to provide Config.default blocks to set cookies when installing.