AsciiString() — netty Function Reference
Architecture documentation for the AsciiString() function in HttpRequestDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 74fbc3b2_d53f_c201_3682_db8c061ddf60["AsciiString()"] 4589186b_4bcc_122c_2013_a0e40fd58a92["HttpRequestDecoder"] 74fbc3b2_d53f_c201_3682_db8c061ddf60 -->|defined in| 4589186b_4bcc_122c_2013_a0e40fd58a92 d9eb0b50_a2c4_bd1e_41bd_38ce052f94cf["isHost()"] 74fbc3b2_d53f_c201_3682_db8c061ddf60 -->|calls| d9eb0b50_a2c4_bd1e_41bd_38ce052f94cf c0227fa4_3347_d5da_3b8e_3b6f565e6c93["isAccept()"] 74fbc3b2_d53f_c201_3682_db8c061ddf60 -->|calls| c0227fa4_3347_d5da_3b8e_3b6f565e6c93 b04e5ca6_683b_83c8_73b0_7e040dc6f8fd["isConnection()"] 74fbc3b2_d53f_c201_3682_db8c061ddf60 -->|calls| b04e5ca6_683b_83c8_73b0_7e040dc6f8fd 15b652eb_f455_865c_0121_3466d53c60bb["isContentType()"] 74fbc3b2_d53f_c201_3682_db8c061ddf60 -->|calls| 15b652eb_f455_865c_0121_3466d53c60bb ee084111_b33d_781d_f618_45168de21b0a["isContentLength()"] 74fbc3b2_d53f_c201_3682_db8c061ddf60 -->|calls| ee084111_b33d_781d_f618_45168de21b0a style 74fbc3b2_d53f_c201_3682_db8c061ddf60 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpRequestDecoder.java lines 225–252
@Override
protected AsciiString splitHeaderName(final byte[] sb, final int start, final int length) {
final byte firstChar = sb[start];
if (firstChar == 'H') {
if (length == 4 && isHost(sb, start)) {
return Host;
}
} else if (firstChar == 'A') {
if (length == 6 && isAccept(sb, start)) {
return Accept;
}
} else if (firstChar == 'C') {
if (length == 10) {
if (isConnection(sb, start)) {
return Connection;
}
} else if (length == 12) {
if (isContentType(sb, start)) {
return ContentType;
}
} else if (length == 14) {
if (isContentLength(sb, start)) {
return ContentLength;
}
}
}
return super.splitHeaderName(sb, start, length);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AsciiString() do?
AsciiString() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpRequestDecoder.java.
Where is AsciiString() defined?
AsciiString() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpRequestDecoder.java at line 225.
What does AsciiString() call?
AsciiString() calls 5 function(s): isAccept, isConnection, isContentLength, isContentType, isHost.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free