public interface AsyncClient
| Modifier and Type | Method and Description |
|---|---|
default java.util.stream.Stream<Exception> |
close() |
org.apache.http.nio.client.HttpAsyncClient |
getClient()
Deprecated.
Eventually the apache implementation will be hidden and other implementation wi be available
|
default boolean |
isRunning() |
<T> CompletableFuture<HttpResponse<T>> |
request(HttpRequest request,
java.util.function.Function<RawResponse,HttpResponse<T>> transformer,
CompletableFuture<HttpResponse<T>> callback)
Make a Async request
|
@Deprecated org.apache.http.nio.client.HttpAsyncClient getClient()
<T> CompletableFuture<HttpResponse<T>> request(HttpRequest request, java.util.function.Function<RawResponse,HttpResponse<T>> transformer, CompletableFuture<HttpResponse<T>> callback)
T - The type of the bodyrequest - the prepared request objecttransformer - the function to transform the responsecallback - the CompletableFuture that will handle the eventual responsedefault java.util.stream.Stream<Exception> close()
default boolean isRunning()
Copyright © 2019. All rights reserved.