- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3k
Description
Discussed in #46414
Originally posted by jdussouillez February 21, 2025
I have a REST API that acts like a middleware between clients and another "external" REST API.
To send requests to the external API, I use a REST client. I want to enable HTTP compression in the REST client, but not in my REST API. Mostly because I have a nginx in front of my REST API that handles compression so it's handled outside of the Quarkus app.
Is this possible?
From what I saw in the documentation, to enable HTTP compression in REST client, I have to use quarkus.http.enable-compression=true.
https://quarkus.io/guides/rest-client#receiving-compressed-messages
REST Client also supports receiving compressed messages using GZIP. You can enable the HTTP compression support by adding the property quarkus.http.enable-compression=true.
But this option will also enable global HTTP compression for my API: https://quarkus.io/guides/http-reference#http-compression
I might find some way to make what I want, but I'm wondering if there is a way to easily enable compression only for REST client.