bool HttpParserImpl::setEOF() { if(readEOF() && HTTP_READ_BODY == read_state_) { read_state_ = HTTP_READ_DONE; onComplete(); return true; } return false; }
bool readUntil(char cC, char cInhibitor) { int nSave; readWs(); nSave = getPos(); while (readEOF() == false) { readChar(cInhibitor); if (readChar(cC) == true) return (true); incPos(); } setPos(nSave); return (false); }