void YASWebProxy::onResponse(QByteArray body) { HttpParser* resParser = qobject_cast<HttpParser*>(sender()); QUrl url = QUrl(resParser->property("url").toString()); emit apiResponse(url, body); }
// The api/failResponse is called just for the side effect of logging. void Ledger::updateLocationSuccess(QNetworkReply& reply) { apiResponse("updateLocation", reply); }