Hi. In the latest versions of the ktor client Http...
# ktor
d
Hi. In the latest versions of the ktor client HttpResponse has been deprecated. How to I replicate something like
Copy code
val myResponse = client.get<HttpResponse>(getHostRequestUrl("/api/getObject"))
if (myResponse .status != HttpStatusCode.OK) {
    log.error("Issue making service request : Status Code : ${workloadResponse.status}")
}

val myObject = parseClusterListResponse(myResponse.readText())
The deprecation error says something like:
Using 'HttpResponse' is an error. Unbound streaming [HttpResponse] is deprecated. Consider using [HttpStatement] instead
But I dont think that is appropriate. Am I wrong?
Ok. I see that there is io.ktor.client.statement.HttpResponse instead. Ignore question above
👍 1