标签: java apache-httpclient-4.x
org.apache.http.client.fluent.Request在Executor中使用默认的httpClient,但我想在http请求因某些异常而失败时添加重试句柄。
我该怎么做?
我已使用此功能发送请求:
Executor executor = Executor.newInstance(httpClient); executor.execute(Request.Get("Url"));