Home / Function/ testTooLargeInitialLine() — netty Function Reference

testTooLargeInitialLine() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java lines 357–368

    @Test
    public void testTooLargeInitialLine() {
        EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder(10, 1024, 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());
        assertInstanceOf(TooLongHttpLineException.class, request.decoderResult().cause());
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free