Norbi
12/19/2022, 5:24 PMHttpClient
throws BadContentTypeFormatException
, is there any way to work around it?Aleksei Tirman [JB]
12/19/2022, 6:00 PMByteArray
and then convert it to a String
if you need:Aleksei Tirman [JB]
12/19/2022, 6:00 PMval client = HttpClient(CIO)
val response = client.get("<http://localhost:5555/>")
val bytes = response.body<ByteArray>()
println(String(bytes))
Norbi
12/19/2022, 6:21 PM