0

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?

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
user41767
  • 1,217
  • 1
  • 17
  • 26
  • 1
    looking at the docs for the HttpExchange class, this seems like a server-side class, as it returns the response, yet your description indicates that you are using it client side? Can you confirm where you are using HttpExchange, and perhaps post a code snippet of your client side code? – mdma May 05 '10 at 06:17
  • Sorry, I meant ContentExchange. and yes I'm using it for client side. – user41767 May 05 '10 at 06:19
  • Here is another thread on this... http://stackoverflow.com/questions/2777005/java-based-http-client-which-supports-pipelining – Dean Hiller Aug 31 '11 at 21:29

1 Answers1

0

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.

Community
  • 1
  • 1
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212