encodeContent() — netty Function Reference
Architecture documentation for the encodeContent() function in HttpContentEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 28841692_90a0_d414_d295_b29438c4c6d4["encodeContent()"] 77d3b233_ef0d_c6ed_64de_3e425b740522["HttpContentEncoder"] 28841692_90a0_d414_d295_b29438c4c6d4 -->|defined in| 77d3b233_ef0d_c6ed_64de_3e425b740522 5f451408_0805_44d2_06ca_843854c94345["encode()"] 5f451408_0805_44d2_06ca_843854c94345 -->|calls| 28841692_90a0_d414_d295_b29438c4c6d4 f8b06062_b563_2e15_a80d_cec486725f70["encodeFullResponse()"] f8b06062_b563_2e15_a80d_cec486725f70 -->|calls| 28841692_90a0_d414_d295_b29438c4c6d4 5f451408_0805_44d2_06ca_843854c94345["encode()"] 28841692_90a0_d414_d295_b29438c4c6d4 -->|calls| 5f451408_0805_44d2_06ca_843854c94345 fadcd477_2c24_992e_12fe_efeffcf68b7d["finishEncode()"] 28841692_90a0_d414_d295_b29438c4c6d4 -->|calls| fadcd477_2c24_992e_12fe_efeffcf68b7d style 28841692_90a0_d414_d295_b29438c4c6d4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java lines 271–291
private boolean encodeContent(HttpContent c, List<Object> out) {
ByteBuf content = c.content();
encode(content, out);
if (c instanceof LastHttpContent) {
finishEncode(out);
LastHttpContent last = (LastHttpContent) c;
// Generate an additional chunk if the decoder produced
// the last product on closure,
HttpHeaders headers = last.trailingHeaders();
if (headers.isEmpty()) {
out.add(LastHttpContent.EMPTY_LAST_CONTENT);
} else {
out.add(new ComposedLastHttpContent(headers, DecoderResult.SUCCESS));
}
return true;
}
return false;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does encodeContent() do?
encodeContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java.
Where is encodeContent() defined?
encodeContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java at line 271.
What does encodeContent() call?
encodeContent() calls 2 function(s): encode, finishEncode.
What calls encodeContent()?
encodeContent() is called by 2 function(s): encode, encodeFullResponse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free