In our Android App, I'm sending pretty large files to our (NGINX) server so I was hoping to use gzip for my Retrofit POST message.
There are many documentations about OkHttp using gzip transparently or changing the headers in order to accept gzip (i.e. in a GET message).
But how can I enable this feature for sending gzip http POST messages from my device? Do I have to write a custom Intercepter or something? Or simply add something to the headers?
According to the following recipe: The correct flow for gzip would be something like this: