Package io.rxson.rxrest
Class CompletableStream<T>
java.lang.Object
io.rxson.rxrest.CompletableStream<T>
public class CompletableStream<T> extends Object
- Author:
- Mohamed Aly Bou Hanane
© 2020
This class provides method
getAsyncResponse()
for accessing the response status code, headers, the response body, and theHttpRequest
corresponding to this response.An
HttpResponse
is made available when the response status code and headers have been received, and typically after the response body has also been completely received.
-
Constructor Summary
Constructors Constructor Description CompletableStream()
-
Method Summary
Modifier and Type Method Description CompletableFuture<HttpResponse<T>>
getAsyncResponse()
void
setAsyncResponse(CompletableFuture<HttpResponse<T>> asyncResponse)
-
Constructor Details
-
CompletableStream
public CompletableStream()
-
-
Method Details
-
getAsyncResponse
-
setAsyncResponse
-