ktor
2.2.4
3.0.0
3.0.0-rc-1
3.0.0-beta-2
3.0.0-beta-1
2.3.12
2.2.4
2.0.3
1.6.8
common
ktor-client-core
/
io.ktor.client.plugins
/
UserAgent
User
Agent
class
UserAgent
A plugin that adds a
User-Agent
header to all requests.
Types
Properties
Types
Config
Link copied to clipboard
class
Config
(
var
agent
:
String
=
"Ktor http-client"
)
Plugin
Link copied to clipboard
object
Plugin
:
HttpClientPlugin
<
UserAgent.Config
,
UserAgent
>
Properties
agent
Link copied to clipboard
val
agent
:
String
a
User-Agent
header value.