encodeEmptyLastHttpContent() — netty Function Reference
Architecture documentation for the encodeEmptyLastHttpContent() function in HttpObjectEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 52e62095_c8cc_bcbd_15d9_3ff5a934c74a["encodeEmptyLastHttpContent()"] 14c61705_9541_276a_37fa_eaab6f15ec5a["HttpObjectEncoder"] 52e62095_c8cc_bcbd_15d9_3ff5a934c74a -->|defined in| 14c61705_9541_276a_37fa_eaab6f15ec5a 9ac1b386_8738_51d3_522c_d4e7b37c3049["encodeNotHttpMessageContentTypes()"] 9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| 52e62095_c8cc_bcbd_15d9_3ff5a934c74a style 52e62095_c8cc_bcbd_15d9_3ff5a934c74a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java lines 430–445
private static int encodeEmptyLastHttpContent(int state, List<Object> out) {
assert state != ST_INIT;
switch (state) {
case ST_CONTENT_NON_CHUNK:
case ST_CONTENT_ALWAYS_EMPTY:
out.add(Unpooled.EMPTY_BUFFER);
break;
case ST_CONTENT_CHUNK:
out.add(ZERO_CRLF_CRLF_BUF.duplicate());
break;
default:
throw new Error("Unexpected http object encoder state: " + state);
}
return ST_INIT;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does encodeEmptyLastHttpContent() do?
encodeEmptyLastHttpContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java.
Where is encodeEmptyLastHttpContent() defined?
encodeEmptyLastHttpContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java at line 430.
What calls encodeEmptyLastHttpContent()?
encodeEmptyLastHttpContent() is called by 1 function(s): encodeNotHttpMessageContentTypes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free