Package com.linecorp.armeria.common
Interface Response
- All Known Subinterfaces:
HttpResponse
,HttpResponseWriter
,RpcResponse
- All Known Implementing Classes:
CompletableRpcResponse
,FilteredHttpResponse
public interface Response
A response stream or a holder of the future result value.
It has to be an
HttpResponse
or an RpcResponse
.-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture
<?> Returns aCompletableFuture
which completes when 1) the response stream has been closed (theStreamMessage
has been completed) or 2) the result value is set (theCompletionStage
has completed.)
-
Method Details
-
whenComplete
Returns aCompletableFuture
which completes when 1) the response stream has been closed (theStreamMessage
has been completed) or 2) the result value is set (theCompletionStage
has completed.)
-