User Agent
note
This help topic is in development and will be updated in the future.
This feature adds a User-Agent header to requests.
Install
val client = HttpClient() {
// Full configuration.
install(UserAgent) {
agent = "ktor"
}
// Shortcut for the browser-like user agent.
BrowserUserAgent()
// Shortcut for the curl-like user agent.
CurlUserAgent()
}