Home / Function/ testUriWithoutPath2() — netty Function Reference

testUriWithoutPath2() — netty Function Reference

Architecture documentation for the testUriWithoutPath2() function in HttpRequestEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e1b586bb_2587_b921_512e_75d54ce3d5ac["testUriWithoutPath2()"]
  fcb9abc3_d47c_ca31_1af5_a7b8b31112c3["HttpRequestEncoderTest"]
  e1b586bb_2587_b921_512e_75d54ce3d5ac -->|defined in| fcb9abc3_d47c_ca31_1af5_a7b8b31112c3
  60a37657_2ad1_472c_3803_efdf8d070e3a["getBuffers()"]
  e1b586bb_2587_b921_512e_75d54ce3d5ac -->|calls| 60a37657_2ad1_472c_3803_efdf8d070e3a
  ef6ea20f_1d89_e7fb_ed43_ea8b34830807["release()"]
  e1b586bb_2587_b921_512e_75d54ce3d5ac -->|calls| ef6ea20f_1d89_e7fb_ed43_ea8b34830807
  style e1b586bb_2587_b921_512e_75d54ce3d5ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java lines 64–74

    @Test
    public void testUriWithoutPath2() throws Exception {
        for (ByteBuf buffer : getBuffers()) {
            HttpRequestEncoder encoder = new HttpRequestEncoder();
            encoder.encodeInitialLine(buffer, new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET,
                    "http://localhost:9999?p1=v1"));
            String req = buffer.toString(StandardCharsets.US_ASCII);
            assertEquals("GET http://localhost:9999/?p1=v1 HTTP/1.1\r\n", req);
            buffer.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testUriWithoutPath2() do?
testUriWithoutPath2() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java.
Where is testUriWithoutPath2() defined?
testUriWithoutPath2() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java at line 64.
What does testUriWithoutPath2() call?
testUriWithoutPath2() calls 2 function(s): getBuffers, release.

Analyze Your Own Codebase

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

Try Supermodel Free