Code example for HttpEntity

Methods: consumeContent

0
    { 
        if (entity != null)
        { 
            try 
            { 
                entity.consumeContent();
            } 
            catch (Exception ignored)
            { 
                // ignored 
            } 
        } 
    } 
 
    public static void setRequestOptions(HttpRequestBase request, HttpRequestOptions requestOptions)
    { 
        request.getParams().setParameter(AllClientPNames.MAX_REDIRECTS,
                new Integer(requestOptions.getMaxRedirects()));
        request.getParams().setParameter(AllClientPNames.SO_TIMEOUT,
                new Integer(requestOptions.getSocketTimeout()));
        request.getParams().setParameter(AllClientPNames.CONNECTION_TIMEOUT,