Module io.netty5.codec.http
Package io.netty5.handler.codec.http
Interface HttpContent<R extends HttpContent<R>>
-
- All Superinterfaces:
AutoCloseable
,io.netty5.handler.codec.DecoderResultProvider
,HttpObject
,io.netty5.util.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, io.netty5.util.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.io.netty5.buffer.api.Buffer
payload()
Returns theBuffer
representing the payload of the HTTP message.
-
-
-
Method Detail
-
payload
io.netty5.buffer.api.Buffer payload()
Returns theBuffer
representing the payload of the HTTP message.- Returns:
- The
Buffer
representing the payload of the HTTP message.
-
copy
R copy()
Create a copy of this HTTP content instance, and return it.- Returns:
- A copy of this HTTP content object.
-
-