Home / Function/ String() — netty Function Reference

String() — netty Function Reference

Architecture documentation for the String() function in HttpRequestDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  09566f6c_f33d_6ed1_3bc1_ea2e2fc4de1b["String()"]
  4589186b_4bcc_122c_2013_a0e40fd58a92["HttpRequestDecoder"]
  09566f6c_f33d_6ed1_3bc1_ea2e2fc4de1b -->|defined in| 4589186b_4bcc_122c_2013_a0e40fd58a92
  ee5451d9_a2c1_18a0_8bb5_b609b1d08233["isGetMethod()"]
  09566f6c_f33d_6ed1_3bc1_ea2e2fc4de1b -->|calls| ee5451d9_a2c1_18a0_8bb5_b609b1d08233
  a4458893_fb79_577f_3220_7de94967614c["isPostMethod()"]
  09566f6c_f33d_6ed1_3bc1_ea2e2fc4de1b -->|calls| a4458893_fb79_577f_3220_7de94967614c
  style 09566f6c_f33d_6ed1_3bc1_ea2e2fc4de1b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpRequestDecoder.java lines 343–355

    @Override
    protected String splitFirstWordInitialLine(final byte[] sb, final int start, final int length) {
        if (length == 3) {
            if (isGetMethod(sb, start)) {
                return HttpMethod.GET.name();
            }
        } else if (length == 4) {
            if (isPostMethod(sb, start)) {
                return HttpMethod.POST.name();
            }
        }
        return super.splitFirstWordInitialLine(sb, start, length);
    }

Subdomains

Frequently Asked Questions

What does String() do?
String() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpRequestDecoder.java.
Where is String() defined?
String() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpRequestDecoder.java at line 343.
What does String() call?
String() calls 2 function(s): isGetMethod, isPostMethod.

Analyze Your Own Codebase

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

Try Supermodel Free