testDecompressionSkipForBinaryFrame() — netty Function Reference
Architecture documentation for the testDecompressionSkipForBinaryFrame() function in PerMessageDeflateDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b546715a_d316_55e2_ab7e_e94ba17b4149["testDecompressionSkipForBinaryFrame()"] 5fb9cabd_f848_d24f_11ed_16ea8470984d["PerMessageDeflateDecoderTest"] b546715a_d316_55e2_ab7e_e94ba17b4149 -->|defined in| 5fb9cabd_f848_d24f_11ed_16ea8470984d style b546715a_d316_55e2_ab7e_e94ba17b4149 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java lines 202–226
@Test
public void testDecompressionSkipForBinaryFrame() {
EmbeddedChannel encoderChannel = new EmbeddedChannel(
ZlibCodecFactory.newZlibEncoder(ZlibWrapper.NONE, 9, 15, 8));
EmbeddedChannel decoderChannel = new EmbeddedChannel(new PerMessageDeflateDecoder(false, ALWAYS_SKIP, 0));
byte[] payload = new byte[300];
random.nextBytes(payload);
assertTrue(encoderChannel.writeOutbound(Unpooled.wrappedBuffer(payload)));
ByteBuf compressedPayload = encoderChannel.readOutbound();
BinaryWebSocketFrame compressedBinaryFrame = new BinaryWebSocketFrame(true, WebSocketExtension.RSV1,
compressedPayload);
assertTrue(decoderChannel.writeInbound(compressedBinaryFrame));
WebSocketFrame inboundFrame = decoderChannel.readInbound();
assertEquals(WebSocketExtension.RSV1, inboundFrame.rsv());
assertEquals(compressedPayload, inboundFrame.content());
assertTrue(inboundFrame.release());
assertTrue(encoderChannel.finishAndReleaseAll());
assertFalse(decoderChannel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testDecompressionSkipForBinaryFrame() do?
testDecompressionSkipForBinaryFrame() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java.
Where is testDecompressionSkipForBinaryFrame() defined?
testDecompressionSkipForBinaryFrame() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoderTest.java at line 202.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free