Using HTTP Pipelining with Jetty HTTPClient
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?
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.
精彩评论