HttpCookies
class HttpCookies : Closeable
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.
Types
companion object Companion : |
|
class Config HttpCookies configuration. |
Constructors
HttpCookies( HttpClient feature that handles sent |
Functions
fun close(): Unit |
|
Find all cookies by requestUrl. |
Companion Object Properties
val key: AttributeKey<HttpCookies> The AttributeKey for this feature. |
Companion Object Functions
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. |