Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(proxy): support brotli compression #852

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sullis
Copy link

@sullis sullis commented Mar 13, 2024

📝 Description

  • add support for brotli compression

Context

This PR adds the brotli4j library.

Netty 4.x will automatically detect the presence of brotli4j.

When brotli4j is on the runtime classpath, Netty enables brotli compression.

If brotli4j is missing from the runtime classpath, Netty does not provide brotli compression.

@sullis
Copy link
Author

sullis commented Mar 13, 2024

cc: @hyperxpro

@sullis sullis force-pushed the sean/support-brotli-compression branch from 818c325 to 0cede14 Compare March 13, 2024 19:37
@sullis sullis changed the title support brotli compression feature(proxy): support brotli compression Mar 13, 2024
@sullis sullis force-pushed the sean/support-brotli-compression branch from 0cede14 to a265ce5 Compare March 13, 2024 20:48
@sullis sullis force-pushed the sean/support-brotli-compression branch from a265ce5 to bf7d7a3 Compare March 13, 2024 20:48
@Test
@EnabledOnOs(value = { OS.LINUX, OS.MAC })
public void brotliCompressionIsAvailable() throws Throwable {
Brotli.ensureAvailability();

Choose a reason for hiding this comment

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

You can remove this because the below assert will fail if the native library is not available.

Copy link
Author

Choose a reason for hiding this comment

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

👍 I just pushed an update. I removed BrotliTest.java and moved 1 assertion into HttpCompressorTest

@sullis
Copy link
Author

sullis commented Mar 14, 2024

@kenluluuuluuuuu this PR is a proof of concept. Please let me know what you think.

@sullis
Copy link
Author

sullis commented Apr 1, 2024

@kenluluuuluuuuu is this an active project?

@kenluluuuluuuuu
Copy link
Contributor

Hi @sullis,
Thanks for attempting to contribute to our project.
However, we're gradually decommissioning the project, and we will only put minimal effort to maintain it.
We won't be adding new features unless there's an absolute need to do so.

Appreciate for the effort and your understanding.

Thanks,
Ken

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