Darren Bell
03/20/2020, 5:10 PMval 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?Darren Bell
03/20/2020, 5:18 PM