spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.77k stars 38.16k forks source link

Reactor Netty response should not buffer the full response #33781

Closed rstoyanchev closed 1 month ago

rstoyanchev commented 1 month ago

ReactorClientHttpResponse aggregates the response content to create the InputStream, which is not ideal. Ideally at this level we should be streaming, and allow the choice to buffer or stream depending on the use case. By contrast, we stream for all other supported clients.

Once #31677 is merged, we should be able to use it to enable streaming.