Home / Function/ testTooLargeInitialLineWithControlCharsOnly() — netty Function Reference

testTooLargeInitialLineWithControlCharsOnly() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d511d861_e620_6da9_d7e9_d0ad597c1c55["testTooLargeInitialLineWithControlCharsOnly()"]
  514322d5_436a_d1ac_6240_1f9cf42934a4["HttpRequestDecoderTest"]
  d511d861_e620_6da9_d7e9_d0ad597c1c55 -->|defined in| 514322d5_436a_d1ac_6240_1f9cf42934a4
  88367536_099c_8362_a08d_032629ddd45c["testTooLargeInitialLineWithWSOnly()"]
  88367536_099c_8362_a08d_032629ddd45c -->|calls| d511d861_e620_6da9_d7e9_d0ad597c1c55
  1cd2bc74_cd01_7440_d6d6_9675cd1cb578["testTooLargeInitialLineWithCRLFOnly()"]
  1cd2bc74_cd01_7440_d6d6_9675cd1cb578 -->|calls| d511d861_e620_6da9_d7e9_d0ad597c1c55
  style d511d861_e620_6da9_d7e9_d0ad597c1c55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java lines 380–390

    private static void testTooLargeInitialLineWithControlCharsOnly(String controlChars) {
        EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder(15, 1024, 1024));
        String requestStr = controlChars + "GET / 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 TooLongHttpLineException);
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testTooLargeInitialLineWithControlCharsOnly() do?
testTooLargeInitialLineWithControlCharsOnly() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java.
Where is testTooLargeInitialLineWithControlCharsOnly() defined?
testTooLargeInitialLineWithControlCharsOnly() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java at line 380.
What calls testTooLargeInitialLineWithControlCharsOnly()?
testTooLargeInitialLineWithControlCharsOnly() is called by 2 function(s): testTooLargeInitialLineWithCRLFOnly, testTooLargeInitialLineWithWSOnly.

Analyze Your Own Codebase

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

Try Supermodel Free