MCPcopy Create free account
hub / github.com/KDE/kdevelop / getTransferJob

Method getTransferJob

plugins/ghprovider/ghresource.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92KIO::TransferJob * Resource::getTransferJob(const QString &path, const QString &token) const
93{
94 QUrl url = baseUrl;
95 url = url.adjusted(QUrl::StripTrailingSlash);
96 url.setPath(url.path() + path);
97 KIO::TransferJob *job = KIO::get(url, KIO::Reload, KIO::HideProgressInfo);
98 if (!token.isEmpty())
99 job->addMetaData(QStringLiteral("customHTTPHeader"), QLatin1String("Authorization: token ") + token);
100 return job;
101}
102
103void Resource::retrieveRepos(const QByteArray &data)
104{

Callers

nothing calls this directly

Calls 3

setPathMethod · 0.45
pathMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected