CompletableFuture<HttpResponse<byte[]>> |
HttpRequest.asBytesAsync(Callback<byte[]> callback) |
Executes the request asynchronously and returns the response with the body mapped into a byte[]
|
CompletableFuture<HttpResponse<Empty>> |
HttpRequest.asEmptyAsync(Callback<Empty> callback) |
Executes the request asynchronously and returns a empty response which is passed to a callback
|
CompletableFuture<HttpResponse<File>> |
HttpRequest.asFileAsync(String path,
Callback<File> callback,
CopyOption... copyOptions) |
asynchronously executes the request and writes the contents into a file
|
CompletableFuture<HttpResponse<JsonNode>> |
HttpRequest.asJsonAsync(Callback<JsonNode> callback) |
Executes the request asynchronously and returns the response with the body mapped into a JsonNode
|
<T> CompletableFuture<HttpResponse<T>> |
HttpRequest.asObjectAsync(Class<? extends T> responseClass,
Callback<T> callback) |
Executes the request asynchronously, mapping to a type via the configured object mapper and then passed to a callback handler.
|
<T> CompletableFuture<HttpResponse<T>> |
HttpRequest.asObjectAsync(GenericType<T> genericType,
Callback<T> callback) |
Executes the request asynchronously, and use a GenericType with the ObjectMapper
|
CompletableFuture<HttpResponse<String>> |
HttpRequest.asStringAsync(Callback<String> callback) |
Executes the request asynchronously and returns the response with the body mapped into a String
|