/* ------------------------------------------------------------ */ public void reset(boolean returnBuffers) { _parser.reset(); if (returnBuffers) _parser.returnBuffers(); _requestFields.clear(); _request.recycle(); _generator.reset(returnBuffers); // TODO maybe only release when low on resources _responseFields.clear(); _response.recycle(); _uri.clear(); }
/* ------------------------------------------------------------ */ public boolean isIdle() { return _generator.isIdle() && (_parser.isIdle() || _delayedHandling); }