Home / Function/ finishAggregation() — netty Function Reference

finishAggregation() — netty Function Reference

Architecture documentation for the finishAggregation() function in HttpObjectAggregator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7628a8d0_e3df_be41_eb1c_29397ff77db0["finishAggregation()"]
  a76e3e26_7290_bbe0_3351_75d99b1319d1["HttpObjectAggregator"]
  7628a8d0_e3df_be41_eb1c_29397ff77db0 -->|defined in| a76e3e26_7290_bbe0_3351_75d99b1319d1
  style 7628a8d0_e3df_be41_eb1c_29397ff77db0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java lines 226–239

    @Override
    protected void finishAggregation(FullHttpMessage aggregated) throws Exception {
        // Set the 'Content-Length' header. If one isn't already set.
        // This is important as HEAD responses will use a 'Content-Length' header which
        // does not match the actual body, but the number of bytes that would be
        // transmitted if a GET would have been used.
        //
        // See rfc2616 14.13 Content-Length
        if (!HttpUtil.isContentLengthSet(aggregated)) {
            aggregated.headers().set(
                    CONTENT_LENGTH,
                    String.valueOf(aggregated.content().readableBytes()));
        }
    }

Subdomains

Frequently Asked Questions

What does finishAggregation() do?
finishAggregation() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java.
Where is finishAggregation() defined?
finishAggregation() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java at line 226.

Analyze Your Own Codebase

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

Try Supermodel Free