Hi guys, I am trying to send a compressed respons...
# ktor
r
Hi guys, I am trying to send a compressed response back to the browser using call.respondWrite like
Copy code
call.respondWrite(contentType = ContentType.Application.GZip) {
                    val output = WriterOutputStream(this)
                    val writer = BufferedWriter(OutputStreamWriter(GZIPOutputStream(output), "UTF-8"))

...
but this is not compressing the response, do you see anything weird there? or can you point me out to other way of doing it with ktor?
d
Have you tried this feature? https://ktor.io/features/compression.html