class HttpCookies
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.
companion object Companion : HttpClientFeature<Config, HttpCookies> |
|
class Config
HttpCookies configuration. |
HttpCookies(storage: CookiesStorage, defaults: List<suspend CookiesStorage.() -> Unit>)
HttpClient feature that handles sent |
fun close(): Unit |
|
suspend fun get(requestUrl: Url): List<Cookie>
Find all cookies by requestUrl. |
val key: AttributeKey<HttpCookies>
The AttributeKey for this feature. |
fun install(feature: HttpCookies, scope: HttpClient): Unit
Installs the feature class for a HttpClient defined at scope. |
|
fun prepare(block: Config.() -> Unit): HttpCookies
Builds a TFeature by calling the block with a TConfig config instance as receiver. |