Home / Function/ testUriWithoutPath() — netty Function Reference

testUriWithoutPath() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java lines 52–62

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

Domain

Subdomains

Frequently Asked Questions

What does testUriWithoutPath() do?
testUriWithoutPath() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java.
Where is testUriWithoutPath() defined?
testUriWithoutPath() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java at line 52.
What does testUriWithoutPath() call?
testUriWithoutPath() 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