Hi, I am currently implementing a draft support for JDK new HTTP client in Spring Framework 5 [1] (using JDK 10 for now) in order to be able to leverage it as a WebClient [2] engine.
Our integration tests all pass with regular HTTP/1.1 webservices (we have not tested the HTTP/2 support yet), but not with streaming APIs. Based on my current understanding, it seems the CompletableFuture<HttpResponse> returned by HttpClient#sendAsync completes only when all the data of the response body is available, not asap the status code + headers are available like with Jetty or Reactor Netty clients (which prevents to consume infinite streams via Reactive Streams API). Is consuming streaming HTTP/1.1 endpoints (like JSON streaming or SSE) supported by current implementation? Regards, Sébastien Deleuze [1] https://github.com/sdeleuze/jdk-http-webclient/ [2] https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#webflux-client