Home / Function/ HttpContent() — netty Function Reference

HttpContent() — netty Function Reference

Architecture documentation for the HttpContent() function in HttpObjectDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f0688d6f_69a9_7904_5972_19bf1fc36adf["HttpContent()"]
  6c551372_1bb2_fe27_3884_c4cc297c86ae["HttpObjectDecoder"]
  f0688d6f_69a9_7904_5972_19bf1fc36adf -->|defined in| 6c551372_1bb2_fe27_3884_c4cc297c86ae
  style f0688d6f_69a9_7904_5972_19bf1fc36adf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java lines 726–738

    private HttpContent invalidChunk(ByteBuf in, Exception cause) {
        currentState = State.BAD_MESSAGE;
        message = null;
        trailer = null;

        // Advance the readerIndex so that ByteToMessageDecoder does not complain
        // when we produced an invalid message without consuming anything.
        in.skipBytes(in.readableBytes());

        HttpContent chunk = new DefaultLastHttpContent(Unpooled.EMPTY_BUFFER);
        chunk.setDecoderResult(DecoderResult.failure(cause));
        return chunk;
    }

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free