RFR [11] 8197564: HTTP Client implementation - JEP 321
Sebastien Deleuze
sdeleuze at pivotal.io
Thu Apr 5 10:07:21 UTC 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20180405/4836f955/attachment.html>
More information about the net-dev
mailing list