File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/ning/http/client Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 22
22
import com .ning .http .client .filter .RequestFilter ;
23
23
import com .ning .http .client .providers .jdk .JDKAsyncHttpProvider ;
24
24
import com .ning .http .client .resumable .ResumableAsyncHandler ;
25
+ import java .io .Closeable ;
25
26
import org .slf4j .Logger ;
26
27
import org .slf4j .LoggerFactory ;
27
28
138
139
* An instance of this class will cache every HTTP 1.1 connections and close them when the {@link AsyncHttpClientConfig#getIdleConnectionTimeoutInMs()}
139
140
* expires. This object can hold many persistent connections to different host.
140
141
*/
141
- public class AsyncHttpClient {
142
+ public class AsyncHttpClient implements Closeable {
142
143
143
144
private final static String DEFAULT_PROVIDER = "com.ning.http.client.providers.netty.NettyAsyncHttpProvider" ;
144
145
private final AsyncHttpProvider httpProvider ;
You can’t perform that action at this time.
0 commit comments