Bogdan Ciprian Pistol wrote:
Tuure, why standard HTTP messages cannot be used for streaming? Why chunked messages are more appropriate?
Chunked messages are standard :) My understanding is that each HTTP response is a response to a specific request. Thus streaming of data over long periods of time (for delivery of a large file, for example) cannot be achieved with multiple responses unless the client is prepared to make multiple requests.
For sending large files, the current interface would be sufficient. With a custom IoBuffer implementation, backed by a file. However, for streaming of data that is produced on the server, and the exact size of which is unknown, this isn't useful.
