MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / buildUrl

Method buildUrl

src/sync/WizKMServer.cpp:297–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296
297QString WizKMApiServerBase::buildUrl(QString urlPath)
298{
299 if (urlPath.startsWith("http://") || urlPath.startsWith("https://")) {
300 QString url = urlPath;
301 return appendNormalParams(url, getToken());
302 }
303 else
304 {
305 //
306 if (!urlPath.startsWith("/"))
307 {
308 urlPath = "/" + urlPath;
309 }
310 QString url = getServer() + urlPath;
311 return appendNormalParams(url, getToken());
312 }
313}
314
315bool WizKMApiServerBase::getValueVersion(const QString& strMethodPrefix, const QString& strGuid, const QString& strKey, __int64& nVersion)
316{

Callers 2

execStandardJsonRequestFunction · 0.80
getJsonListFunction · 0.80

Calls 1

appendNormalParamsFunction · 0.85

Tested by

no test coverage detected