AsyncHttpClient/async-http-client

Request compression support in async-http-client

chandrav723 opened this issue ยท 4 comments

Hi,

Does async-http-client supports sending compressed(compression does by algo mentioned in header 'content-encoding') request to server ?
Can you share the code snippet how to add the support of request compression?

You can manually compress the content. Because as of now, automatic compression is not possible. But I'll add this into backlog features which will be implemented in future.

@hyperxpro FYI, netty's HttpContentCompressor only supports server side response compression. The request compression handler is missing.

I'll think about this and do a PR in Netty for client request compression.