Package io.micronaut.http.netty.stream
Interface StreamedHttpMessage
-
- All Superinterfaces:
io.netty.handler.codec.DecoderResultProvider,io.netty.handler.codec.http.HttpMessage,io.netty.handler.codec.http.HttpObject,org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent>
- All Known Subinterfaces:
StreamedHttpRequest,StreamedHttpResponse
- All Known Implementing Classes:
DefaultStreamedHttpRequest,DefaultStreamedHttpResponse
public interface StreamedHttpMessage extends io.netty.handler.codec.http.HttpMessage, org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent>CombinesHttpMessageandPublisherinto one message. So it represents an http message with a stream ofHttpContentmessages that can be subscribed to. Note that receivers of this message must consume the publisher, since the publisher will exert back pressure up the stream if not consumed.