Home / Function/ String() — netty Function Reference

String() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5eaa7b0c_ceaf_d4b9_c460_207d8aef506f["String()"]
  c26a8de7_4130_e6d2_f18f_4d1697886c48["MultipleContentLengthHeadersTest"]
  5eaa7b0c_ceaf_d4b9_c460_207d8aef506f -->|defined in| c26a8de7_4130_e6d2_f18f_4d1697886c48
  style 5eaa7b0c_ceaf_d4b9_c460_207d8aef506f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/MultipleContentLengthHeadersTest.java lines 83–96

    private static String setupRequestString(boolean sameValue, boolean singleField) {
        String firstValue = "1";
        String secondValue = sameValue ? firstValue : "2";
        String contentLength;
        if (singleField) {
            contentLength = "Content-Length: " + firstValue + ", " + secondValue + "\r\n\r\n";
        } else {
            contentLength = "Content-Length: " + firstValue + "\r\n" +
                            "Content-Length: " + secondValue + "\r\n\r\n";
        }
        return "PUT /some/path HTTP/1.1\r\n" +
               contentLength +
               "ab";
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free