Module io.netty5.codec.http
Package io.netty5.handler.codec.http
Interface HttpContent<R extends HttpContent<R>>
-
- All Superinterfaces:
AutoCloseable,DecoderResultProvider,HttpObject,Resource<R>
- All Known Subinterfaces:
FullHttpMessage<R>,FullHttpRequest,FullHttpResponse,LastHttpContent<R>
- All Known Implementing Classes:
DefaultFullHttpRequest,DefaultFullHttpResponse,DefaultHttpContent,DefaultLastHttpContent,EmptyLastHttpContent
public interface HttpContent<R extends HttpContent<R>> extends HttpObject, Resource<R>
An HTTP chunk which is used for HTTP chunked transfer-encoding.HttpObjectDecodergeneratesHttpContentafterHttpMessagewhen the content is large or the encoding of the content is 'chunked. If you prefer not to receiveHttpContentin your handler, placeHttpObjectAggregatorafterHttpObjectDecoderin theChannelPipeline.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rcopy()Create a copy of this HTTP content instance, and return it.Bufferpayload()Returns theBufferrepresenting the payload of the HTTP message.-
Methods inherited from interface io.netty5.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty5.util.Resource
close, isAccessible, send, touch
-
-