| Package | Description |
|---|---|
| kong.unirest | |
| kong.unirest.apache |
| Modifier and Type | Class and Description |
|---|---|
class |
RawResponseBase |
| 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 and pass the raw response to a consumer.
|
void |
HttpRequest.thenConsumeAsync(java.util.function.Consumer<RawResponse> consumer)
Execute the request asynchronously and pass the raw response to a consumer.
|
| Constructor and Description |
|---|
BasicResponse(RawResponse httpResponse,
String ogBody,
RuntimeException ex) |
BasicResponse(RawResponse httpResponse,
T body) |
ByteResponse(RawResponse r) |
FileResponse(RawResponse r,
String path) |
JsonResponse(RawResponse response) |
StringResponse(RawResponse response,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
<T> HttpResponse<T> |
ApacheClient.request(HttpRequest request,
java.util.function.Function<RawResponse,HttpResponse<T>> transformer) |
<T> CompletableFuture<HttpResponse<T>> |
ApacheAsyncClient.request(HttpRequest request,
java.util.function.Function<RawResponse,HttpResponse<T>> transformer,
CompletableFuture<HttpResponse<T>> callback) |
Copyright © 2019. All rights reserved.