Home / Function/ isEncodingSafeStartLineToken() — netty Function Reference

isEncodingSafeStartLineToken() — netty Function Reference

Architecture documentation for the isEncodingSafeStartLineToken() function in HttpUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5cb08eec_4816_55bf_0ac2_3f3587201a37["isEncodingSafeStartLineToken()"]
  0b1cc975_2772_c898_b055_3991b4e80dba["HttpUtil"]
  5cb08eec_4816_55bf_0ac2_3f3587201a37 -->|defined in| 0b1cc975_2772_c898_b055_3991b4e80dba
  63f7e0d1_a92d_2eb3_1bd5_d40cf6d00437["validateRequestLineTokens()"]
  63f7e0d1_a92d_2eb3_1bd5_d40cf6d00437 -->|calls| 5cb08eec_4816_55bf_0ac2_3f3587201a37
  style 5cb08eec_4816_55bf_0ac2_3f3587201a37 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpUtil.java lines 105–120

    public static boolean isEncodingSafeStartLineToken(CharSequence token) {
        int lenBytes = token.length();
        for (int i = 0; i < lenBytes; i++) {
            char ch = token.charAt(i);
            // this is to help AOT compiled code which cannot profile the switch
            if (ch <= ' ') {
                switch (ch) {
                    case '\n':
                    case '\r':
                    case ' ':
                        return false;
                }
            }
        }
        return true;
    }

Subdomains

Frequently Asked Questions

What does isEncodingSafeStartLineToken() do?
isEncodingSafeStartLineToken() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpUtil.java.
Where is isEncodingSafeStartLineToken() defined?
isEncodingSafeStartLineToken() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpUtil.java at line 105.
What calls isEncodingSafeStartLineToken()?
isEncodingSafeStartLineToken() is called by 1 function(s): validateRequestLineTokens.

Analyze Your Own Codebase

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

Try Supermodel Free