Julien Vermillard wrote:
Hi,

I would like to have your comments about the Asyncweb server API
[...]
So you can add content in chunks in place of 1 big buffer, that won't
resolve the streaming problem, but it's convenient.

Now streaming :
[...]
> PartialResponseListener listener = new PartialResponseListener() {
[...]

Looks good to me. I might suggest that in addition, there should be some method that would allow you to signify the content-length ahead of time, or to indicate that chunked encoding will be used. And there should be a level of checking to make sure that you don't overflow the content length, if it was given.

But I like this idea.

- DML

Reply via email to