LastHttpContent Type — netty Architecture
Architecture documentation for the LastHttpContent type/interface in LastHttpContent.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD de3e2c2c_08c7_2d26_cec9_0307103bf2db["LastHttpContent"] 421b0d4d_02da_e26c_8825_f25ecae5c8d1["LastHttpContent.java"] de3e2c2c_08c7_2d26_cec9_0307103bf2db -->|defined in| 421b0d4d_02da_e26c_8825_f25ecae5c8d1 style de3e2c2c_08c7_2d26_cec9_0307103bf2db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/LastHttpContent.java lines 25–144
public interface LastHttpContent extends HttpContent {
/**
* The 'end of content' marker in chunked encoding.
*/
LastHttpContent EMPTY_LAST_CONTENT = new LastHttpContent() {
@Override
public ByteBuf content() {
return Unpooled.EMPTY_BUFFER;
}
@Override
public LastHttpContent copy() {
return EMPTY_LAST_CONTENT;
}
@Override
public LastHttpContent duplicate() {
return this;
}
@Override
public LastHttpContent replace(ByteBuf content) {
return new DefaultLastHttpContent(content);
}
@Override
public LastHttpContent retainedDuplicate() {
return this;
}
@Override
public HttpHeaders trailingHeaders() {
return EmptyHttpHeaders.INSTANCE;
}
@Override
public DecoderResult decoderResult() {
return DecoderResult.SUCCESS;
}
@Override
@Deprecated
public DecoderResult getDecoderResult() {
return decoderResult();
}
@Override
public void setDecoderResult(DecoderResult result) {
throw new UnsupportedOperationException("read only");
}
@Override
public int refCnt() {
return 1;
}
@Override
public LastHttpContent retain() {
return this;
}
@Override
public LastHttpContent retain(int increment) {
return this;
}
@Override
public LastHttpContent touch() {
return this;
}
@Override
public LastHttpContent touch(Object hint) {
return this;
}
@Override
public boolean release() {
return false;
Source
Frequently Asked Questions
What is the LastHttpContent type?
LastHttpContent is a type/interface in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/LastHttpContent.java.
Where is LastHttpContent defined?
LastHttpContent is defined in codec-http/src/main/java/io/netty/handler/codec/http/LastHttpContent.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free