Home / Function/ testServerWindowSizeSuccess() — netty Function Reference

testServerWindowSizeSuccess() — netty Function Reference

Architecture documentation for the testServerWindowSizeSuccess() function in WebSocketServerCompressionHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  db90509f_06c2_6a44_903f_d52d7c221cc1["testServerWindowSizeSuccess()"]
  f04a1df1_c87f_2c9a_6db7_545340c5a3cb["WebSocketServerCompressionHandlerTest"]
  db90509f_06c2_6a44_903f_d52d7c221cc1 -->|defined in| f04a1df1_c87f_2c9a_6db7_545340c5a3cb
  style db90509f_06c2_6a44_903f_d52d7c221cc1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/WebSocketServerCompressionHandlerTest.java lines 103–122

    @Test
    public void testServerWindowSizeSuccess() {
        EmbeddedChannel ch = new EmbeddedChannel(new WebSocketServerExtensionHandler(
                new PerMessageDeflateServerExtensionHandshaker(6, true, 15, false, false, 0)));

        HttpRequest req = newUpgradeRequest(PERMESSAGE_DEFLATE_EXTENSION + "; " + SERVER_MAX_WINDOW + "=10");
        ch.writeInbound(req);

        HttpResponse res = newUpgradeResponse(null);
        ch.writeOutbound(res);

        HttpResponse res2 = ch.readOutbound();
        List<WebSocketExtensionData> exts = WebSocketExtensionUtil.extractExtensions(
                res2.headers().get(HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS));

        assertEquals(PERMESSAGE_DEFLATE_EXTENSION, exts.get(0).name());
        assertEquals("10", exts.get(0).parameters().get(SERVER_MAX_WINDOW));
        assertNotNull(ch.pipeline().get(PerMessageDeflateDecoder.class));
        assertNotNull(ch.pipeline().get(PerMessageDeflateEncoder.class));
    }

Domain

Subdomains

Frequently Asked Questions

What does testServerWindowSizeSuccess() do?
testServerWindowSizeSuccess() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/WebSocketServerCompressionHandlerTest.java.
Where is testServerWindowSizeSuccess() defined?
testServerWindowSizeSuccess() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/WebSocketServerCompressionHandlerTest.java at line 103.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free