Home / Function/ testInitialLineWithLeadingControlChars() — netty Function Reference

testInitialLineWithLeadingControlChars() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java lines 392–404

    @Test
    public void testInitialLineWithLeadingControlChars() {
        EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder());
        String crlf = "\r\n";
        String request =  crlf + "GET /some/path HTTP/1.1" + crlf +
                "Host: localhost" + crlf + crlf;
        assertTrue(channel.writeInbound(Unpooled.copiedBuffer(request, CharsetUtil.US_ASCII)));
        HttpRequest req = channel.readInbound();
        assertEquals(HttpMethod.GET, req.method());
        assertEquals("/some/path", req.uri());
        assertEquals(HttpVersion.HTTP_1_1, req.protocolVersion());
        assertTrue(channel.finishAndReleaseAll());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free