how do I use HTTP compression plugin with this exa...
# ktor
r
how do I use HTTP compression plugin with this example? Even when I install the plugin responses are not compressed https://github.com/ktorio/ktor-samples/blob/main/reverse-proxy/src/main/kotlin/io/ktor/samples/reverseproxy/ReverseProxyApplication.kt
a
If I install the
Compression
plugin the body of the
Application.module
method, I can see that the responses contain the
Content-Encoding: gzip
header:
Copy code
fun Application.module() {
    install(Compression) {
        gzip()
    }
    // ...
}
r
Let me check what is different then in my actual code which is based on that sample code and try to create a reproducer
the compression plugin was installed in the same way