Home / Function/ testTooManyFormFieldsPostStandardDecoder() — netty Function Reference

testTooManyFormFieldsPostStandardDecoder() — netty Function Reference

Architecture documentation for the testTooManyFormFieldsPostStandardDecoder() function in HttpPostRequestDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fd24931b_ec06_13f3_68a5_4d9e0d5d3645["testTooManyFormFieldsPostStandardDecoder()"]
  d3dadcbe_07b1_86dc_3f34_5a56e9d1367e["HttpPostRequestDecoderTest"]
  fd24931b_ec06_13f3_68a5_4d9e0d5d3645 -->|defined in| d3dadcbe_07b1_86dc_3f34_5a56e9d1367e
  style fd24931b_ec06_13f3_68a5_4d9e0d5d3645 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 1038–1056

    @Test
    public void testTooManyFormFieldsPostStandardDecoder() {
        HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/");

        HttpPostRequestDecoder decoder = new HttpPostRequestDecoder(req, 1024, -1);

        int num = 0;
        while (true) {
            try {
                decoder.offer(new DefaultHttpContent(Unpooled.wrappedBuffer("foo=bar&".getBytes())));
            } catch (DecoderException e) {
                assertEquals(HttpPostRequestDecoder.TooManyFormFieldsException.class, e.getClass());
                break;
            }
            assertTrue(num++ < 1024);
        }
        assertEquals(1024, num);
        decoder.destroy();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free