Code example for Header

Methods: getValue

            throws IOException { 
        InputStream responseStream = entity.getContent();
        if (responseStream == null) return responseStream;
        Header header = entity.getContentEncoding();
        if (header == null) return responseStream;
        String contentEncoding = header.getValue();
        if (contentEncoding == null) return responseStream;
        if (contentEncoding.contains("gzip")) responseStream
                = new GZIPInputStream(responseStream);
        return responseStream;
     * Release resources associated with this client.  You must call this, 
     * or significant resources (sockets and memory) may be leaked. 
    public void close() { 
        if (mLeakedException != null) {
            mLeakedException = null;
Stop searching for code, let great code find you!  Add Codota to your java IDE