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 25
25
import org .slf4j .Logger ;
26
26
import org .slf4j .LoggerFactory ;
27
27
28
+ import java .io .Closeable ;
28
29
import java .io .IOException ;
29
30
import java .io .InputStream ;
30
31
import java .util .Collection ;
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