feature(proxy): support brotli compression#852
feature(proxy): support brotli compression#852sullis wants to merge 2 commits intoExpediaGroup:masterfrom
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.
You can remove this because the below assert will fail if the native library is not available.
There was a problem hiding this comment.
👍 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.