Package io.netty5.handler.codec.http
Interface HttpContent<R extends HttpContent<R>>
-
- All Superinterfaces:
AutoCloseable
,io.netty5.handler.codec.DecoderResultProvider
,HttpObject
,io.netty5.buffer.api.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.buffer.api.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 io.netty5.buffer.api.Buffer
payload()
Returns theBuffer
representing the payload of the HTTP message.
-