public interface HttpResponse extends Response, StreamMessage<HttpObject>
Response
.Modifier and Type | Method and Description |
---|---|
default java.util.concurrent.CompletableFuture<AggregatedHttpMessage> |
aggregate()
Aggregates this response.
|
default java.util.concurrent.CompletableFuture<AggregatedHttpMessage> |
aggregate(java.util.concurrent.Executor executor)
Aggregates this response.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
closeFuture()
Returns a
CompletableFuture which completes when
1) the response stream has been closed (the StreamMessage has been closed) or
2) the result value is set (the CompletionStage has completed.) |
static HttpResponse |
of(org.reactivestreams.Publisher<? extends HttpObject> publisher)
Creates a new instance from an existing
Publisher . |
static HttpResponse of(org.reactivestreams.Publisher<? extends HttpObject> publisher)
Publisher
.java.util.concurrent.CompletableFuture<java.lang.Void> closeFuture()
Response
CompletableFuture
which completes when
1) the response stream has been closed (the StreamMessage
has been closed) or
2) the result value is set (the CompletionStage
has completed.)closeFuture
in interface Response
closeFuture
in interface StreamMessage<HttpObject>
default java.util.concurrent.CompletableFuture<AggregatedHttpMessage> aggregate()
CompletableFuture
will be notified when the content and
the trailing headers of the response are received fully.default java.util.concurrent.CompletableFuture<AggregatedHttpMessage> aggregate(java.util.concurrent.Executor executor)
CompletableFuture
will be notified when the content and
the trailing headers of the response are received fully.