0

I was wondering if it is possible to begin a chunk-encoded HTTP response while still receiving an HTTP request which is also chunk-encoded?

It could be useful to do some processing on-the-fly on large amount of data.

I've made some tests with AsyncHttpClient, Jetty and Servlet-3.0's AsyncContext, but it did not work well: I can process the request on-the-fly and append calculation to the response but everything is displayed only once the request has been entirely consumed.

Do you have any idea? Thanks!

radium226
  • 1,993
  • 2
  • 12
  • 10

1 Answers1

0

That's exactly why WebSockets exist! HTTP/1.x is synchrone so it's not possibe without that.

radium226
  • 1,993
  • 2
  • 12
  • 10