I am currently writing a driver to send data to a api service and to optimize the sending process I would like to compress the post request.
I have tried specifying the necessary headers and compressed the content but it looks like the under the hood method asynchttpPost is not supporting the content encoding:
requestContentType should do it. I'm going to run some tests.
Edit: yeah, requestContentType works. I've added an endpoint to test what goes out, /hub/test/noop. It produces log entries like the ones below and will be a part of next build.