async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

Request compression support in async-http-client

Open chandrav723 opened this issue 3 years ago • 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?

chandrav723 avatar Nov 30 '22 19:11 chandrav723

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 avatar Dec 02 '22 19:12 hyperxpro

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

slandelle avatar Dec 02 '22 19:12 slandelle

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

hyperxpro avatar Dec 02 '22 19:12 hyperxpro

I would like to work on it if have a ticket.

chandrav723 avatar Dec 02 '22 19:12 chandrav723