Because it returns HttpResponse and should use .body() to convert it to required type
➕ 3
gildor
04/14/2022, 9:40 AM
Ktor 1.x had all those top level methods like get/post/etc which return generic types, not anymore, all methods in Ktor 2.0 return now HttpRequest and you return required representation