Home / Function/ encodeHttpMessageNotLastContent() — netty Function Reference

encodeHttpMessageNotLastContent() — netty Function Reference

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

Function java ProtocolCodecs HTTP calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  a61eaa49_0095_25ca_894d_15f990231592["encodeHttpMessageNotLastContent()"]
  14c61705_9541_276a_37fa_eaab6f15ec5a["HttpObjectEncoder"]
  a61eaa49_0095_25ca_894d_15f990231592 -->|defined in| 14c61705_9541_276a_37fa_eaab6f15ec5a
  18cc7b78_3c6e_f726_9bf6_777174f30988["encode()"]
  18cc7b78_3c6e_f726_9bf6_777174f30988 -->|calls| a61eaa49_0095_25ca_894d_15f990231592
  a269521d_6b98_a05f_40e6_74c9bd5dcc51["throwUnexpectedMessageTypeEx()"]
  a61eaa49_0095_25ca_894d_15f990231592 -->|calls| a269521d_6b98_a05f_40e6_74c9bd5dcc51
  3131a977_675c_cce9_b6b8_d3e0f586099a["checkContentState()"]
  a61eaa49_0095_25ca_894d_15f990231592 -->|calls| 3131a977_675c_cce9_b6b8_d3e0f586099a
  ebe34bd0_65f8_4408_a145_1b7768631692["encodeByteBufHttpContent()"]
  a61eaa49_0095_25ca_894d_15f990231592 -->|calls| ebe34bd0_65f8_4408_a145_1b7768631692
  style a61eaa49_0095_25ca_894d_15f990231592 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java lines 231–247

    private void encodeHttpMessageNotLastContent(ChannelHandlerContext ctx, H m, List<Object> out) throws Exception {
        assert m instanceof HttpContent;
        assert !(m instanceof LastHttpContent);
        final HttpContent httpContent = (HttpContent) m;
        try {
            if (state != ST_INIT) {
                throwUnexpectedMessageTypeEx(m, state);
            }
            final ByteBuf buf = encodeInitHttpMessage(ctx, m);

            assert checkContentState(state);

            encodeByteBufHttpContent(state, ctx, buf, httpContent.content(), null, out);
        } finally {
            httpContent.release();
        }
    }

Subdomains

Called By

Frequently Asked Questions

What does encodeHttpMessageNotLastContent() do?
encodeHttpMessageNotLastContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java.
Where is encodeHttpMessageNotLastContent() defined?
encodeHttpMessageNotLastContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java at line 231.
What does encodeHttpMessageNotLastContent() call?
encodeHttpMessageNotLastContent() calls 3 function(s): checkContentState, encodeByteBufHttpContent, throwUnexpectedMessageTypeEx.
What calls encodeHttpMessageNotLastContent()?
encodeHttpMessageNotLastContent() is called by 1 function(s): encode.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free