class UserAgent
Default user-agent feature for HttpClient.
class Config |
|
companion object Feature : HttpClientFeature<Config, UserAgent> |
UserAgent(agent: String)
Default user-agent feature for HttpClient. |
val agent: String
: value of user-agent header to set. |
val key: AttributeKey<UserAgent>
The AttributeKey for this feature. |
fun install(feature: UserAgent, scope: HttpClient): Unit
Installs the feature class for a HttpClient defined at scope. |
|
fun prepare(block: Config.() -> Unit): UserAgent
Builds a TFeature by calling the block with a TConfig config instance as receiver. |