HTTPCLIENT-1455: fixed code sample in the 'Caching' section of the tutorial
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1564244 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
260d370b0f
commit
ba9d0565b9
|
@ -151,7 +151,7 @@ RequestConfig requestConfig = RequestConfig.custom()
|
||||||
.setConnectTimeout(30000)
|
.setConnectTimeout(30000)
|
||||||
.setSocketTimeout(30000)
|
.setSocketTimeout(30000)
|
||||||
.build();
|
.build();
|
||||||
CloseableHttpClient cachingClient = caching HttpClients.custom()
|
CloseableHttpClient cachingClient = CachingHttpClients.custom()
|
||||||
.setCacheConfig(cacheConfig)
|
.setCacheConfig(cacheConfig)
|
||||||
.setDefaultRequestConfig(requestConfig)
|
.setDefaultRequestConfig(requestConfig)
|
||||||
.build();
|
.build();
|
||||||
|
|
Loading…
Reference in New Issue