encodeChunkedHttpContent() — netty Function Reference
Architecture documentation for the encodeChunkedHttpContent() function in HttpObjectEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b["encodeChunkedHttpContent()"] 14c61705_9541_276a_37fa_eaab6f15ec5a["HttpObjectEncoder"] 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b -->|defined in| 14c61705_9541_276a_37fa_eaab6f15ec5a ebe34bd0_65f8_4408_a145_1b7768631692["encodeByteBufHttpContent()"] ebe34bd0_65f8_4408_a145_1b7768631692 -->|calls| 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b 8e15dfab_2bf8_f636_56c6_05b88a79413b["encodeByteBufAndTrailers()"] 8e15dfab_2bf8_f636_56c6_05b88a79413b -->|calls| 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b 267a23bc_b47f_88ca_5ff5_18b6900fb55b["addEncodedLengthHex()"] 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b -->|calls| 267a23bc_b47f_88ca_5ff5_18b6900fb55b b88925d1_5b58_297b_cb31_2e2407fdc926["encodeTrailingHeaders()"] 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b -->|calls| b88925d1_5b58_297b_cb31_2e2407fdc926 style 5a1c3f74_95b1_8e88_f9a6_79d4afc3659b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java lines 489–504
private void encodeChunkedHttpContent(ChannelHandlerContext ctx, ByteBuf content, HttpHeaders trailingHeaders,
List<Object> out) {
final int contentLength = content.readableBytes();
if (contentLength > 0) {
addEncodedLengthHex(ctx, contentLength, out);
out.add(content.retain());
out.add(CRLF_BUF.duplicate());
}
if (trailingHeaders != null) {
encodeTrailingHeaders(ctx, trailingHeaders, out);
} else if (contentLength == 0) {
// Need to produce some output otherwise an
// IllegalStateException will be thrown
out.add(content.retain());
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does encodeChunkedHttpContent() do?
encodeChunkedHttpContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java.
Where is encodeChunkedHttpContent() defined?
encodeChunkedHttpContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java at line 489.
What does encodeChunkedHttpContent() call?
encodeChunkedHttpContent() calls 2 function(s): addEncodedLengthHex, encodeTrailingHeaders.
What calls encodeChunkedHttpContent()?
encodeChunkedHttpContent() is called by 2 function(s): encodeByteBufAndTrailers, encodeByteBufHttpContent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free