0

我正在尝试弄清楚如何使用 HTTPClient (org.eclipse.jetty.client.HttpClient),以便它将通过管道传输 HTTP 请求。

我尝试以异步模式创建一些 ContentExchange 实例并为每个实例应用 send() 方法,但每个 HTTP 请求在发送下一个请求之前都等待它的响应。

您能否提供此案例的代码片段?

4

1 回答 1

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.

于 2011-08-31T21:30:47.283 回答