简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM