| Modifier and Type | Method and Description |
|---|---|
<T> HttpResponse<T> |
HttpRequest.asObject(java.util.function.Function<RawResponse,T> function)
Execute the request and pass the raw response to a function for mapping.
|
<T> CompletableFuture<HttpResponse<T>> |
HttpRequest.asObjectAsync(java.util.function.Function<RawResponse,T> function)
Executes the request asynchronously, and pass the raw response to a function for mapping.
|
<T> HttpResponse<T> |
Client.request(HttpRequest request,
java.util.function.Function<RawResponse,HttpResponse<T>> transformer)
Make a request
|
<T> CompletableFuture<HttpResponse<T>> |
AsyncClient.request(HttpRequest request,
java.util.function.Function<RawResponse,HttpResponse<T>> transformer,
CompletableFuture<HttpResponse<T>> callback)
Make a Async request
|
void |
HttpRequest.thenConsume(java.util.function.Consumer<RawResponse> consumer)
Execute the request asynchronously and pass the raw response to a consumer.
|
void |
HttpRequest.thenConsumeAsync(java.util.function.Consumer<RawResponse> consumer)
Execute the request and pass the raw response to a consumer.
|
| Constructor and Description |
|---|
BinaryResponse(RawResponse response) |
FileResponse(RawResponse r,
String path) |
JsonResponse(RawResponse response) |
StringResponse(RawResponse response,
String encoding) |
Copyright © 2019. All rights reserved.