throw new IllegalStateException("Closed");
{ Log.debug("Ignoring extra content {}",content); content.clear(); return; }
    public void addContent(Buffer content, boolean last) throws IOException    {        if (_noContent)        {            content.clear();            return;        }                if (content.isImmutable()) throw new IllegalArgumentException("immutable");        if (_last || _state==STATE_END)             throw new IllegalStateException("Closed");        _last = last;        // Handle any unfinished business?        if (_content!=null && _content.length()>0 || _bufferChunked)        {            flushBuffers();            if (_content != null && _content.length()>0 || _bufferChunked)                 throw new IllegalStateException("FULL");        }        _content = content;        _contentWritten += content.length();        // Handle the _content        if (_head)        {            content.clear();            _content=null;        }        else if (_endp != null && _buffer == null && content.length() > 0 && _last)        {            // TODO - use bypass in more cases.            // Make _content a direct buffer            _bypass = true;        }        else        {            // Yes - so we better check we have a buffer            if (_buffer == null)                 _buffer = _buffers.getBuffer(_contentBufferSize);            // Copy _content to buffer;            int len=_buffer.put(_content);            _content.skip(len);            if (_content.length() == 0)                 _content = null;        }    }