Home / Function/ isContentAlwaysEmpty() — netty Function Reference

isContentAlwaysEmpty() — netty Function Reference

Architecture documentation for the isContentAlwaysEmpty() function in HttpRequestDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1870b6f4_f8d6_9ea4_aceb_aa272abf5316["isContentAlwaysEmpty()"]
  4589186b_4bcc_122c_2013_a0e40fd58a92["HttpRequestDecoder"]
  1870b6f4_f8d6_9ea4_aceb_aa272abf5316 -->|defined in| 4589186b_4bcc_122c_2013_a0e40fd58a92
  style 1870b6f4_f8d6_9ea4_aceb_aa272abf5316 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpRequestDecoder.java lines 388–397

    @Override
    protected boolean isContentAlwaysEmpty(final HttpMessage msg) {
        // fast-path to save expensive O(n) checks; users can override createMessage
        // and extends DefaultHttpRequest making implementing HttpResponse:
        // this is why we cannot use instanceof DefaultHttpRequest here :(
        if (msg.getClass() == DefaultHttpRequest.class) {
            return false;
        }
        return super.isContentAlwaysEmpty(msg);
    }

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free