Home / Function/ testChunkSizeOverflow2() — netty Function Reference

testChunkSizeOverflow2() — netty Function Reference

Architecture documentation for the testChunkSizeOverflow2() function in HttpRequestDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  07a02593_943f_381c_2633_3279de4d8154["testChunkSizeOverflow2()"]
  514322d5_436a_d1ac_6240_1f9cf42934a4["HttpRequestDecoderTest"]
  07a02593_943f_381c_2633_3279de4d8154 -->|defined in| 514322d5_436a_d1ac_6240_1f9cf42934a4
  style 07a02593_943f_381c_2633_3279de4d8154 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java lines 788–802

    @Test
    public void testChunkSizeOverflow2() {
        String requestStr = "PUT /some/path HTTP/1.1\r\n" +
                "Transfer-Encoding: chunked\r\n\r\n" +
                "bbbbbbbe;\r\n\r\n";
        EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder());
        assertTrue(channel.writeInbound(Unpooled.copiedBuffer(requestStr, CharsetUtil.US_ASCII)));
        HttpRequest request = channel.readInbound();
        assertTrue(request.decoderResult().isSuccess());
        HttpContent c = channel.readInbound();
        c.release();
        assertTrue(c.decoderResult().isFailure());
        assertInstanceOf(NumberFormatException.class, c.decoderResult().cause());
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testChunkSizeOverflow2() do?
testChunkSizeOverflow2() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java.
Where is testChunkSizeOverflow2() defined?
testChunkSizeOverflow2() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java at line 788.

Analyze Your Own Codebase

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

Try Supermodel Free