Using HTTP Pipelining with Jetty HTTPClient

2k Views Asked by At

I'm trying to figure out how to use HTTPClient (org.eclipse.jetty.client.HttpClient) so it will pipeline HTTP Requests.

I've tried to create some ContentExchange instances and applying the send() method for each, in an asynchronous mode, but each HTTP request has waited for it response before the next request was sent.

Can you please supply a code snippet for this case?

1

There are 1 best solutions below

0
Dean Hiller On

I think the apache http client may help

Java based HTTP Client which supports Pipelining

Also, there was another one in that thread as well that might work. I guess you can try some of the clients from that thread.