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

Matthias R

11/21/2019, 4:59 PM
Hey guys, I am basically doing a post request with ktor httpClient and I get back a HttpResponse successfully. With that I can see the response status and headers but I cannot see the body. How can I find the body?
j

Jamie Craane

11/22/2019, 8:18 AM
You should be able to read the response by using the read* methods, for example:
response.readText(Charset.forName("UTF-8"))
m

Matthias R

11/22/2019, 6:59 PM
It worked out for me, thanks!
2 Views