isContentAlwaysEmpty() — netty Function Reference
Architecture documentation for the isContentAlwaysEmpty() function in HttpObjectDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e296a6f9_cccf_f3cd_2a43_a9281d020f61["isContentAlwaysEmpty()"] 6c551372_1bb2_fe27_3884_c4cc297c86ae["HttpObjectDecoder"] e296a6f9_cccf_f3cd_2a43_a9281d020f61 -->|defined in| 6c551372_1bb2_fe27_3884_c4cc297c86ae 91c85325_7220_8d93_a39b_91415ca496f4["State()"] 91c85325_7220_8d93_a39b_91415ca496f4 -->|calls| e296a6f9_cccf_f3cd_2a43_a9281d020f61 style e296a6f9_cccf_f3cd_2a43_a9281d020f61 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java lines 640–666
protected boolean isContentAlwaysEmpty(HttpMessage msg) {
if (msg instanceof HttpResponse) {
HttpResponse res = (HttpResponse) msg;
final HttpResponseStatus status = res.status();
final int code = status.code();
final HttpStatusClass statusClass = status.codeClass();
// Correctly handle return codes of 1xx.
//
// See:
// - https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html Section 4.4
// - https://github.com/netty/netty/issues/222
if (statusClass == HttpStatusClass.INFORMATIONAL) {
// One exception: Hixie 76 websocket handshake response
return !(code == 101 && !res.headers().contains(HttpHeaderNames.SEC_WEBSOCKET_ACCEPT)
&& res.headers().contains(HttpHeaderNames.UPGRADE, HttpHeaderValues.WEBSOCKET, true));
}
switch (code) {
case 204: case 304:
return true;
default:
return false;
}
}
return false;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isContentAlwaysEmpty() do?
isContentAlwaysEmpty() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java.
Where is isContentAlwaysEmpty() defined?
isContentAlwaysEmpty() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java at line 640.
What calls isContentAlwaysEmpty()?
isContentAlwaysEmpty() is called by 1 function(s): State.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free