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.HttpObjectDecoder
generatesHttpContent
afterHttpMessage
when the content is large or the encoding of the content is 'chunked. If you prefer not to receiveHttpContent
in your handler, placeHttpObjectAggregator
afterHttpObjectDecoder
in theChannelPipeline
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
copy()
Create a copy of this HTTP content instance, and return it.Buffer
payload()
Returns theBuffer
representing 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
-
-