Home / Function/ testTooLargeHeaders() — netty Function Reference

testTooLargeHeaders() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java lines 406–417

    @Test
    public void testTooLargeHeaders() {
        EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder(1024, 10, 1024));
        String requestStr = "GET /some/path HTTP/1.1\r\n" +
                "Host: localhost1\r\n\r\n";

        assertTrue(channel.writeInbound(Unpooled.copiedBuffer(requestStr, CharsetUtil.US_ASCII)));
        HttpRequest request = channel.readInbound();
        assertTrue(request.decoderResult().isFailure());
        assertTrue(request.decoderResult().cause() instanceof TooLongHttpHeaderException);
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free