Package com.linecorp.armeria.common
Interface SplitHttpMessage
- All Known Subinterfaces:
SplitHttpRequest
,SplitHttpResponse
public interface SplitHttpMessage
An
HttpMessage
which splits a stream of HttpObject
s into payloads and HTTP trailers.
trailers()
might not complete until the entire payload is consumed completely.-
Method Summary
Modifier and TypeMethodDescriptionbody()
Returns aStreamMessage
publishes HTTP payloads as a stream ofHttpData
.trailers()
Returns aCompletableFuture
completed with a trailers.
-
Method Details
-
body
Returns aStreamMessage
publishes HTTP payloads as a stream ofHttpData
. -
trailers
CompletableFuture<HttpHeaders> trailers()Returns aCompletableFuture
completed with a trailers. If anHttpRequest
orHttpResponse
does not contain trailers, returnedCompletableFuture
will be completed with an empty headers.
-