void HttpReply::finishedSlot() { QString status(headerValue("Qchemserv-Status")); qDebug() << "HttpReply finishedSlot called with header"; qDebug() << "-------------------------------------------------------------"; dumpHeader(); qDebug() << "HttpReply finishedSlot called with message"; qDebug() << m_message; qDebug() << "HttpReply finishedSlot called with status"; qDebug() << status; qDebug() << "-------------------------------------------------------------"; if (status.contains("OK")) { if (m_status != Error) m_status = m_interrupt ? Interrupted : Finished; if (m_message.isEmpty()) { QLOG_TRACE() << "HttpReply message empty, returning header"; m_message = headerAsString(); } }else if (status.contains("ERROR")) { m_status = Error; m_message = headerValue("Qchemserv-Error"); }else { m_status = Error; m_message = "QChem server temporarily unavailable"; } finished(); }
void HttpReply::dumpHeader() { qDebug() << headerAsString(); }