Szymon Lipiński
10/04/2019, 3:29 PMval client = HttpClient() {
install(BasicAuth) {
username = "test"
password = "pass"
}
where BasicAuth
, username
, password
are unknown... The documentation https://ktor.io/clients/http-client/features/auth.html#providers says that it should be: install(Auth) {
basic {
username = "username"
password = "password"
}
}
but then also basic
is not known... I could change Auth
to Authentication
but then username
and password
don't fit there. Do you have any working example?