io.netty.handler.codec.http.HttpContentCompressor need compress threshold
See original GitHub issueExpected behavior
the response body is compressed, when the response body exceeds the threshold
Actual behavior
no threshold can be set
Steps to reproduce
Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.16.Final
JVM version (e.g. java -version
)
java 1.8
OS version (e.g. uname -a
)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:14 (11 by maintainers)
Top Results From Across the Web
HttpContentCompressor (Netty API Reference (4.1.85.Final))
Compresses an HttpMessage and an HttpContent in gzip or deflate encoding while respecting the ... Methods inherited from class io.netty.handler.codec.http.
Read more >netty/HttpContentCompressor.java at 4.1 - GitHub
Unless required by applicable law or agreed to in writing, software ... import io.netty.handler.codec.compression.Brotli; ... body exceeds the threshold.
Read more >io.netty.handler.codec.http.HttpContentCompressor.write java ...
This is needed as we use the // ChunkedWriteHandler to send files when compression is enabled. ByteBuf buff = (ByteBuf) msg; if (buff....
Read more >io.netty.handler.codec.compression.DecompressionException
The way I'm testing the http compression is wrong. Below code works fine - try(CloseableHttpClient httpclient = HttpClients.
Read more >io.netty.handler.codec.http.HttpContentCompressor - Netty 4.1.72 ...
本页提供 io.netty.handler.codec.http.HttpContentCompressor 源码的在线查看和学习,来自 Netty 4.1.72.Final 源码 - 即时通讯网(52im.net)
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hepin1989 @pli2014 I think we should not suggest anything as what makes sense highly depends… for example even if you use smaller buffers as the mtu size it may make sense if you do a gathering write.
Let users decide how to use it.