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[]>> HttpRequest.asBytesAsync(Callback<byte[]> callback) Executes the request asynchronously and returns the response with the body mapped into a byte[]HttpRequest.asEmptyAsync(Callback<Empty> callback) Executes the request asynchronously and returns a empty response which is passed to a callbackHttpRequest.asFileAsync(String path, Callback<File> callback, CopyOption... copyOptions) asynchronously executes the request and writes the contents into a fileHttpRequest.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 ObjectMapperHttpRequest.asStringAsync(Callback<String> callback) Executes the request asynchronously and returns the response with the body mapped into a String