-
Notifications
You must be signed in to change notification settings - Fork 79
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
base: master
Are you sure you want to change the base?
feature(proxy): support brotli compression #852
Conversation
cc: @hyperxpro |
818c325
to
0cede14
Compare
0cede14
to
a265ce5
Compare
a265ce5
to
bf7d7a3
Compare
@Test | ||
@EnabledOnOs(value = { OS.LINUX, OS.MAC }) | ||
public void brotliCompressionIsAvailable() throws Throwable { | ||
Brotli.ensureAvailability(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
@kenluluuuluuuuu this PR is a proof of concept. Please let me know what you think. |
@kenluluuuluuuuu is this an active project? |
Hi @sullis, Appreciate for the effort and your understanding. Thanks, |
📝 Description
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.