Hi all, I've been struggling to find documentation...
# ktor
t
Hi all, I've been struggling to find documentation on setting the body with something that's closable such as an inputstream or channel. In this case does ktor close the resource once it's been consumed or do I need to close this myself. Also curious what happens when the coroutine gets cancelled. In that case I'm guessing I need to do the cleanup. I can write a test for this, but curious if anyone knows this information offhand.
I confirmed via test that the input stream does get closed once fully consumed, but (not surprisingly) does not get closed upon cancellation
a
The channel should be closed on the cancellation.
t
Oh nice. I did not verify channels.