Add JSON utility functions to QObjectHandler.

This commit is contained in:
Nathan Osman
2016-10-13 15:33:55 -07:00
parent c1fc8a115d
commit 5968739f03
7 changed files with 149 additions and 34 deletions

View File

@@ -66,3 +66,9 @@ void QSimpleHttpClient::onReadyRead()
}
}
}
bool QSimpleHttpClient::isDataReceived() const
{
return mHeaders.contains("Content-Length") &&
mData.length() >= mHeaders.value("Content-Length").toInt();
}