Code example for HttpContext

Methods: removeAttribute

0
    } 
 
    public void release(NHttpClientConnection conn) {
        conn.getMetrics().reset();
        HttpContext ctx = conn.getContext();
        ctx.removeAttribute(ExecutionContext.HTTP_REQUEST);
        ctx.removeAttribute(ExecutionContext.HTTP_RESPONSE);
 
        lock.lock();
        try { 
            if (busyConnections.remove(conn)) {
                freeConnections.add(conn);
            } else { 
                log.error("Attempted to releaseConnection connection not in the busy list");
            } 
        } finally { 
            lock.unlock();
        } 
    } 
 
    public void forget(NHttpClientConnection conn) {