Home / Function/ testClientWindowSizeUnavailable() — netty Function Reference

testClientWindowSizeUnavailable() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  43881a88_f096_f738_a26d_842870855243["testClientWindowSizeUnavailable()"]
  f04a1df1_c87f_2c9a_6db7_545340c5a3cb["WebSocketServerCompressionHandlerTest"]
  43881a88_f096_f738_a26d_842870855243 -->|defined in| f04a1df1_c87f_2c9a_6db7_545340c5a3cb
  style 43881a88_f096_f738_a26d_842870855243 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 82–101

    @Test
    public void testClientWindowSizeUnavailable() {
        EmbeddedChannel ch = new EmbeddedChannel(new WebSocketServerExtensionHandler(
                new PerMessageDeflateServerExtensionHandshaker(6, false, 10, false, false, 0)));

        HttpRequest req = newUpgradeRequest(PERMESSAGE_DEFLATE_EXTENSION);
        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());
        assertTrue(exts.get(0).parameters().isEmpty());
        assertNotNull(ch.pipeline().get(PerMessageDeflateDecoder.class));
        assertNotNull(ch.pipeline().get(PerMessageDeflateEncoder.class));
    }

Domain

Subdomains

Frequently Asked Questions

What does testClientWindowSizeUnavailable() do?
testClientWindowSizeUnavailable() 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 testClientWindowSizeUnavailable() defined?
testClientWindowSizeUnavailable() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/extensions/compression/WebSocketServerCompressionHandlerTest.java at line 82.

Analyze Your Own Codebase

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

Try Supermodel Free