encodeByteBufHttpContent() — netty Function Reference
Architecture documentation for the encodeByteBufHttpContent() function in HttpObjectEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ebe34bd0_65f8_4408_a145_1b7768631692["encodeByteBufHttpContent()"] 14c61705_9541_276a_37fa_eaab6f15ec5a["HttpObjectEncoder"] ebe34bd0_65f8_4408_a145_1b7768631692 -->|defined in| 14c61705_9541_276a_37fa_eaab6f15ec5a a61eaa49_0095_25ca_894d_15f990231592["encodeHttpMessageNotLastContent()"] a61eaa49_0095_25ca_894d_15f990231592 -->|calls| ebe34bd0_65f8_4408_a145_1b7768631692 dfbc1010_4c37_d8b8_04e1_8fae7a3f2b99["encodeHttpMessageLastContent()"] dfbc1010_4c37_d8b8_04e1_8fae7a3f2b99 -->|calls| ebe34bd0_65f8_4408_a145_1b7768631692 b7f03547_801e_f8bc_8cf5_573799e43a8c["encodeFullHttpMessage()"] b7f03547_801e_f8bc_8cf5_573799e43a8c -->|calls| ebe34bd0_65f8_4408_a145_1b7768631692 2f570965_5dd3_fd51_dfbe_c0c32b59d269["encodeContentNonChunk()"] ebe34bd0_65f8_4408_a145_1b7768631692 -->|calls| 2f570965_5dd3_fd51_dfbe_c0c32b59d269 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b["encodeChunkedHttpContent()"] ebe34bd0_65f8_4408_a145_1b7768631692 -->|calls| 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b style ebe34bd0_65f8_4408_a145_1b7768631692 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java lines 209–229
private void encodeByteBufHttpContent(int state, ChannelHandlerContext ctx, ByteBuf buf, ByteBuf content,
HttpHeaders trailingHeaders, List<Object> out) {
switch (state) {
case ST_CONTENT_NON_CHUNK:
if (encodeContentNonChunk(out, buf, content)) {
break;
}
// fall-through!
case ST_CONTENT_ALWAYS_EMPTY:
// We allocated a buffer so add it now.
out.add(buf);
break;
case ST_CONTENT_CHUNK:
// We allocated a buffer so add it now.
out.add(buf);
encodeChunkedHttpContent(ctx, content, trailingHeaders, out);
break;
default:
throw new Error("Unexpected http object encoder state: " + state);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does encodeByteBufHttpContent() do?
encodeByteBufHttpContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java.
Where is encodeByteBufHttpContent() defined?
encodeByteBufHttpContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java at line 209.
What does encodeByteBufHttpContent() call?
encodeByteBufHttpContent() calls 2 function(s): encodeChunkedHttpContent, encodeContentNonChunk.
What calls encodeByteBufHttpContent()?
encodeByteBufHttpContent() is called by 3 function(s): encodeFullHttpMessage, encodeHttpMessageLastContent, encodeHttpMessageNotLastContent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free