@FunctionalInterface
public interface HttpResponseHandler<R>
| Modifier and Type | Method and Description |
|---|---|
R |
handle(HttpResponse response)
Handle the response and return the result.
|
static HttpResponseHandler<HttpResponse> |
identity() |
static HttpResponseHandler<HttpResponse> identity()
R handle(@Nonnull HttpResponse response) throws java.io.IOException
response - The response to handlejava.io.IOException - If an I/O error occurs