Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Flow Control with Jetty HTTP client

Hi Brian,

On Wed, Jun 22, 2016 at 7:16 PM, Brian Clozel <bclozel@xxxxxxxxxx> wrote:
> Hello,
>
> I've seen that one can register a `AsyncContentListener` on the client, in
> order to asynchronously get content as it comes:
>
>     `public void onContent(Response response, ByteBuffer content, Callback
> callback)`.
>
> But I haven't found a way to handle flow control - i.e. the ability to
> pause/resume the response content flow on the client side. Is there a way to
> achieve this?

Yes. You notify the callback when you are ready to handle more content.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top