ktor
2.2.x
Select version
3.3.x
3.2.x
3.1.x
3.0.x
2.3.x
2.2.x
2.0.x
1.6.x
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.