add method to NetworkRequest to fetch the underlying url string

This commit is contained in:
Rasmus Karlsson
2018-09-20 13:37:20 +02:00
parent 641c5822d7
commit 8eba7a0182
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -143,6 +143,11 @@ void NetworkRequest::execute()
}
}
QString NetworkRequest::urlString() const
{
return this->data->request_.url().toString();
}
Outcome NetworkRequest::tryLoadCachedFile()
{
QFile cachedFile(getPaths()->cacheDirectory() + "/" +