Home / Function/ findNonWhitespace() — netty Function Reference

findNonWhitespace() — netty Function Reference

Architecture documentation for the findNonWhitespace() function in HttpObjectDecoder.java from the netty codebase.

Function java ProtocolCodecs HTTP calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  e0010314_3a91_8cf4_d472_336bc8dd9e0e["findNonWhitespace()"]
  6c551372_1bb2_fe27_3884_c4cc297c86ae["HttpObjectDecoder"]
  e0010314_3a91_8cf4_d472_336bc8dd9e0e -->|defined in| 6c551372_1bb2_fe27_3884_c4cc297c86ae
  40673f8f_e843_c287_a057_291f8aa2ac4d["splitHeader()"]
  40673f8f_e843_c287_a057_291f8aa2ac4d -->|calls| e0010314_3a91_8cf4_d472_336bc8dd9e0e
  e08dbe47_8a4b_d9ac_74f4_c8f8c4abbf36["isWhitespace()"]
  e0010314_3a91_8cf4_d472_336bc8dd9e0e -->|calls| e08dbe47_8a4b_d9ac_74f4_c8f8c4abbf36
  2b5a1e5d_3274_82c2_5ac9_47f058c1a2d6["isOWS()"]
  e0010314_3a91_8cf4_d472_336bc8dd9e0e -->|calls| 2b5a1e5d_3274_82c2_5ac9_47f058c1a2d6
  style e0010314_3a91_8cf4_d472_336bc8dd9e0e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java lines 1133–1145

    private static int findNonWhitespace(byte[] sb, int offset, int end) {
        for (int result = offset; result < end; ++result) {
            byte c = sb[result];
            if (!isWhitespace(c)) {
                return result;
            } else if (!isOWS(c)) {
                // Only OWS is supported for whitespace
                throw new IllegalArgumentException("Invalid separator, only a single space or horizontal tab allowed," +
                        " but received a '" + c + "' (0x" + Integer.toHexString(c) + ")");
            }
        }
        return end;
    }

Subdomains

Called By

Frequently Asked Questions

What does findNonWhitespace() do?
findNonWhitespace() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java.
Where is findNonWhitespace() defined?
findNonWhitespace() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java at line 1133.
What does findNonWhitespace() call?
findNonWhitespace() calls 2 function(s): isOWS, isWhitespace.
What calls findNonWhitespace()?
findNonWhitespace() is called by 1 function(s): splitHeader.

Analyze Your Own Codebase

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

Try Supermodel Free