Uses of Interface
kong.unirest.core.Callback
Packages that use Callback
-
Uses of Callback in kong.unirest.core
Methods in kong.unirest.core with parameters of type CallbackModifier and TypeMethodDescriptionCompletableFuture
<HttpResponse<byte[]>> BaseRequest.asBytesAsync
(Callback<byte[]> callback) CompletableFuture
<HttpResponse<byte[]>> HttpRequest.asBytesAsync
(Callback<byte[]> callback) Executes the request asynchronously and returns the response with the body mapped into a byte[]BaseRequest.asEmptyAsync
(Callback<Empty> callback) HttpRequest.asEmptyAsync
(Callback<Empty> callback) Executes the request asynchronously and returns a empty response which is passed to a callbackBaseRequest.asFileAsync
(String path, Callback<File> callback, CopyOption... copyOptions) HttpRequest.asFileAsync
(String path, Callback<File> callback, CopyOption... copyOptions) asynchronously executes the request and writes the contents into a fileBaseRequest.asJsonAsync
(Callback<JsonNode> callback) HttpRequest.asJsonAsync
(Callback<JsonNode> callback) Executes the request asynchronously and returns the response with the body mapped into a JsonNode<T> CompletableFuture
<HttpResponse<T>> BaseRequest.asObjectAsync
(Class<? extends T> responseClass, Callback<T> callback) <T> CompletableFuture
<HttpResponse<T>> BaseRequest.asObjectAsync
(GenericType<T> genericType, Callback<T> callback) <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 ObjectMapperBaseRequest.asStringAsync
(Callback<String> callback) HttpRequest.asStringAsync
(Callback<String> callback) Executes the request asynchronously and returns the response with the body mapped into a String(package private) static <T> CompletableFuture
<HttpResponse<T>>