https://kotlinlang.org logo
#ktor
Title
# ktor
s

spierce7

02/20/2019, 10:49 PM
What is the best way to read the full response body of a Ktor
HttpResponse
as a String? We are finding crashes when we do things like
response.content.readUTF8Line()
z

zpearce

02/20/2019, 10:52 PM
There's
response.readText()
s

spierce7

02/20/2019, 10:54 PM
what does this do if the body content is null?
z

zpearce

02/20/2019, 11:03 PM
¯\_(ツ)_/¯
s

spierce7

02/20/2019, 11:04 PM
trying to test it. Thanks for pointing me to that
e

e5l

02/21/2019, 4:48 AM
What do you mean by
null
?