Skip to content

Conversation

@robotdan
Copy link
Member

@robotdan robotdan commented Oct 30, 2025

Handle the Content-Encoding on the HTTP request to match our response compression support. This includes gzip and deflate.

We could consider adding support for additional compression algorithms such as Brotli (br) or zStandard (zstd) - but to do that we'd likely have to pull in 3rd party libs, or implement them ourselves. This would go against our no-deps policy. So if we did, perhaps we'd want to just allow them to be added via separate jars so we don't pollute the core project.

It is interesting to note that not a lot of HTTP servers support request compression. Sort of makes sense since if you assume the client is generally not sending large requests, only receiving large request. I don't see any harm in supporting it though - even if it isn't super common to use it.

@robotdan robotdan marked this pull request as ready for review November 1, 2025 18:29
Copy link
Member

@voidmain voidmain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing major, but it looks like there is a dead variable.

case Headers.ContentEncodingLower:
String[] encodings = value.split(",");
List<String> contentEncodings = new ArrayList<>(1);
int encodingIndex = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this variable is needed. Can we remove it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. not sure what that was for.. but not necessary any longer. 😎
Thanks!

@robotdan robotdan merged commit 1f638a8 into main Nov 5, 2025
@robotdan robotdan deleted the degroff/content_encoding branch November 5, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants