spring-framework / org.springframework.http.client / SimpleClientHttpRequestFactory / setOutputStreaming

setOutputStreaming

open fun setOutputStreaming(outputStreaming: Boolean): Unit

Set if the underlying URLConnection can be set to 'output streaming' mode. Default is true.

When output streaming is enabled, authentication and redirection cannot be handled automatically. If output streaming is disabled, the HttpURLConnection#setFixedLengthStreamingMode and HttpURLConnection#setChunkedStreamingMode methods of the underlying connection will never be called.

Parameters

outputStreaming - if output streaming is enabled