is this is how we are supposed to write a string t...
# getting-started
p
is this is how we are supposed to write a string to output stream?
h
I don't think so, because calling
close()
on the Writer will also close the underlying stream. I'd use
output.bufferedWriter().use { it.write(response) }