Add JSON utility functions to QObjectHandler.
This commit is contained in:
@@ -66,3 +66,9 @@ void QSimpleHttpClient::onReadyRead()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool QSimpleHttpClient::isDataReceived() const
|
||||
{
|
||||
return mHeaders.contains("Content-Length") &&
|
||||
mData.length() >= mHeaders.value("Content-Length").toInt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user