Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何断开org.apache.http.client.HttpClient对象? 我正在像这样创建它,但它没有任何disconnect()or getHttpConnectionManager!
org.apache.http.client.HttpClient
disconnect()
getHttpConnectionManager
HttpClient httpclient = new DefaultHttpClient();
谢谢
利用
httpClient.getConnectionManager().shutdown();
请参阅示例。
注意:getHttpConnectionManager来自 HttpClient 3.1。