List of usage examples for org.apache.http.util EntityUtilsHC4 consume
public static void consume(final HttpEntity entity) throws IOException
From source file:nya.miku.wishmaster.http.streamer.HttpResponseModel.java
/** ?? ? ?? ?? HTTP-? HTTP- */ static void release(HttpUriRequest request, HttpResponse response) { try {/*from w w w .j a v a 2 s. c o m*/ if (request != null) request.abort(); } catch (Exception e) { Logger.e(TAG, e); } try { if (response != null) { HttpEntity entity = response.getEntity(); EntityUtilsHC4.consume(entity); } } catch (Exception e) { Logger.e(TAG, e); } try { if (response != null && response instanceof Closeable) ((Closeable) response).close(); } catch (Exception e) { Logger.e(TAG, e); } }