Example usage for org.springframework.http.client HttpComponentsClientHttpRequestFactory setBufferRequestBody

List of usage examples for org.springframework.http.client HttpComponentsClientHttpRequestFactory setBufferRequestBody

Introduction

In this page you can find the example usage for org.springframework.http.client HttpComponentsClientHttpRequestFactory setBufferRequestBody.

Prototype

public void setBufferRequestBody(boolean bufferRequestBody) 

Source Link

Document

Indicates whether this request factory should buffer the request body internally.

Usage

From source file:com.muk.services.configuration.ServiceConfig.java

@Bean
public ClientHttpRequestFactory nonPerformantStreamingHttpRequestFactory() {
    final HttpComponentsClientHttpRequestFactory factory = new HttpComponentsClientHttpRequestFactory(
            nonPerfomantHttpClient());/*from  w w w .  j  a v  a 2 s .c  o m*/

    factory.setBufferRequestBody(false);
    return factory;
}