@ -54,6 +54,7 @@ public class BufferingClientHttpRequestFactory extends AbstractClientHttpRequest
/**
* Constructor variant with an additional predicate to decide whether to
* buffer the response.
* @since 7.0
*/
public BufferingClientHttpRequestFactory(
ClientHttpRequestFactory requestFactory,
@ -386,8 +386,8 @@ public interface RestClient {
Builder requestInterceptors(Consumer<List<ClientHttpRequestInterceptor>> interceptorsConsumer);
* Enable buffering of request and response content making it possible to
* read the request and the response body multiple times.
* Enable buffering of request and response, aggregating all content before
* it is sent, and making it possible to read the response body repeatedly.
* @param predicate to determine whether to buffer for the given request
* @return this builder
@ -834,9 +834,8 @@ class RestClientIntegrationTests {
.retrieve()
.body(String.class);
assertThat(result).isEqualTo("Hello Spring!");
expectRequestCount(1);
}
@ParameterizedRestClientTest
@ -860,9 +859,8 @@ class RestClientIntegrationTests {
return new String(bytes, UTF_8);
});