我正在使用Apache Commons中的HttpClient对文件进行简单请求。这是我目前的代码:
httpclient = new DefaultHttpClient();
httpget = new HttpGet(location);
context = new BasicHttpContext();
response = httpclient.execute(httpget, context);
entity = response.getEntity();
在下载过程中取消此请求需要做什么?