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