You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently discovered that the old documentation is broken on the micronaut site for 3.9.x versions. Further, the current documentation discusses disabling http compression with netty but that doesn't work with 3.9.x.
I figured out that one can create a custom HttpCompressionStrategy to workaround the lack of compression-level or compression-threshold checks i the old releases as so
@Primary
@Singleton
public class CustomHttpCompressionStrategy implements HttpCompressionStrategy {
public boolean shouldCompress(io.netty.handler.codec.http.HttpResponse response) {
return false;
}
public int getCompressionLevel() {
return 0;
}
}
It would be nice if the documentation was restored for the old versions and this hint was added.
The text was updated successfully, but these errors were encountered:
Issue description
I recently discovered that the old documentation is broken on the micronaut site for 3.9.x versions. Further, the current documentation discusses disabling http compression with netty but that doesn't work with 3.9.x.
I figured out that one can create a custom HttpCompressionStrategy to workaround the lack of compression-level or compression-threshold checks i the old releases as so
It would be nice if the documentation was restored for the old versions and this hint was added.
The text was updated successfully, but these errors were encountered: