Home / Function/ encodeLastHttpContent() — netty Function Reference

encodeLastHttpContent() — netty Function Reference

Architecture documentation for the encodeLastHttpContent() function in HttpObjectEncoder.java from the netty codebase.

Function java ProtocolCodecs HTTP calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  ff751625_d4a6_e38b_7393_ce3baf266fde["encodeLastHttpContent()"]
  14c61705_9541_276a_37fa_eaab6f15ec5a["HttpObjectEncoder"]
  ff751625_d4a6_e38b_7393_ce3baf266fde -->|defined in| 14c61705_9541_276a_37fa_eaab6f15ec5a
  9ac1b386_8738_51d3_522c_d4e7b37c3049["encodeNotHttpMessageContentTypes()"]
  9ac1b386_8738_51d3_522c_d4e7b37c3049 -->|calls| ff751625_d4a6_e38b_7393_ce3baf266fde
  8e15dfab_2bf8_f636_56c6_05b88a79413b["encodeByteBufAndTrailers()"]
  ff751625_d4a6_e38b_7393_ce3baf266fde -->|calls| 8e15dfab_2bf8_f636_56c6_05b88a79413b
  style ff751625_d4a6_e38b_7393_ce3baf266fde fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java lines 447–456

    private void encodeLastHttpContent(ChannelHandlerContext ctx, LastHttpContent msg, List<Object> out) {
        assert state != ST_INIT;
        assert !(msg instanceof HttpMessage);
        try {
            encodeByteBufAndTrailers(state, ctx, out, msg.content(), msg.trailingHeaders());
            state = ST_INIT;
        } finally {
            msg.release();
        }
    }

Subdomains

Frequently Asked Questions

What does encodeLastHttpContent() do?
encodeLastHttpContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java.
Where is encodeLastHttpContent() defined?
encodeLastHttpContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java at line 447.
What does encodeLastHttpContent() call?
encodeLastHttpContent() calls 1 function(s): encodeByteBufAndTrailers.
What calls encodeLastHttpContent()?
encodeLastHttpContent() 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