gzip compression in apigee request or response

Hi

If request or response to apigee-x sends normal message but if Apigee-x has to do gzip compress it?

  1. Understand that if source to apigeex or target of apigee-x sends gzip compress request or response then apigee-x automatically handles the same gzip compression and donot require to any action from apigee-x and it automatically handles gzip compression per listed doc . Endpoint properties reference | Apigee | Google Cloud

2.If request or response to apigee-x sends normal message but if Apigee-x has to do gzip compress it? Did not see inbuild policy for same.

Do we have any work around for such use cases ?

Per Endpoint properties reference | Apigee | Google Cloud list that apigee-x will do gzip compression automatically based on requestor or tqarget server sending gzip compress

@dino @mdunker

2 Likes

I know this is an old question, but …
There is no special policy for compression or decompression. It’s automatic.

For example, if you set the HTTP header named content-encoding as gzip,deflate on the request message, in the target request flow, Apigee will auto-compress the request when sending it to the target.