|
|
|
|
@ -561,6 +561,7 @@ public interface RestClient {
@@ -561,6 +561,7 @@ public interface RestClient {
|
|
|
|
|
* @param <T> the type the response will be transformed to |
|
|
|
|
* @return the value returned from the exchange function |
|
|
|
|
*/ |
|
|
|
|
@Nullable |
|
|
|
|
default <T> T exchange(ExchangeFunction<T> exchangeFunction) { |
|
|
|
|
return exchange(exchangeFunction, true); |
|
|
|
|
} |
|
|
|
|
@ -592,6 +593,7 @@ public interface RestClient {
@@ -592,6 +593,7 @@ public interface RestClient {
|
|
|
|
|
* @param <T> the type the response will be transformed to |
|
|
|
|
* @return the value returned from the exchange function |
|
|
|
|
*/ |
|
|
|
|
@Nullable |
|
|
|
|
<T> T exchange(ExchangeFunction<T> exchangeFunction, boolean close); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -609,6 +611,7 @@ public interface RestClient {
@@ -609,6 +611,7 @@ public interface RestClient {
|
|
|
|
|
* @return the exchanged type |
|
|
|
|
* @throws IOException in case of I/O errors |
|
|
|
|
*/ |
|
|
|
|
@Nullable |
|
|
|
|
T exchange(HttpRequest clientRequest, ConvertibleClientHttpResponse clientResponse) throws IOException; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|