sorry, but why all the HttpResponse methods to get...
# ktor
e
sorry, but why all the HttpResponse methods to get content/body are suspended? Shouldnt the content be already there?
a
One reason is that the body could potentially be huge, so loading it into memory might not be the best option.
j
Also, I guess Ktor probably starts routing the request even before the body is entirely received? Imagine you receive a 50 MiB payload, you might want to be able to drop the request before receiving the whole payload (e.g. if the API key is invalid)
e
yeah, in those situation it makes sense sorry, my case is usually less than 100 lines, I'll go with
runBlocking
then