This branch is related to the issue quarkusio/quarkus#26112.
The following table provides encoding test results depending on quarkus release, resteasy dependency, properties and types of endpoint. GET http://127.0.0.1:8080/entity/1024 (resteasy classic) serves a response with an entity of 1024 bytes. GET http://127.0.0.1:8080/q/metrics serves metrics (quarkus-smallrye-metrics dependency). No test done for health check endpoints.
| quarkus version | resteasy dependency | quarkus.http.enable-compression | quarkus.resteasy.gzip.enabled with org.jboss.resteasy.annotations.GZIP | endpoint | Accept-Encoding | Content-Encoding | | | 2.9.2.Final | quarkus-resteasy-reactive | true | | /entity/1024 | gzip, deflate, br | gzip | | | | | | | /q/metrics | gzip, deflate, br | | quarkus.http.compress-media-types=text/plain has no effect | | | quarkus-resteasy-jsonb | true | | /entity/1024 | gzip, deflate, br | | | | | | | | /q/metrics | gzip, deflate, br | | | | | | | true | /entity/1024 | gzip, deflate, br | gzip | | | | | | | /q/metrics | gzip, deflate, br | | | | | | | | | | | | | | | | | | | | | | 2.8.2.Final | quarkus-resteasy-reactive | true | | /entity/1024 | gzip, deflate, br | gzip | | | | | | | /q/metrics | gzip, deflate, br | gzip | | | | quarkus-resteasy-jsonb | true | | /entity/1024 | gzip, deflate, br | gzip | | | | | | | /q/metrics | gzip, deflate, br | gzip | |