MCPcopy Create free account
hub / github.com/MultiMC/Launcher / setup

Method setup

launcher/minecraft/auth/AuthRequest.cpp:94–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void AuthRequest::setup(const QNetworkRequest &req, QNetworkAccessManager::Operation operation, const QByteArray &verb) {
95 request_ = req;
96 operation_ = operation;
97 url_ = req.url();
98
99 QUrl url = url_;
100 request_.setUrl(url);
101
102 if (!verb.isEmpty()) {
103 request_.setRawHeader(Katabasis::HTTP_HTTP_HEADER, verb);
104 }
105
106 status_ = Requesting;
107 error_ = QNetworkReply::NoError;
108 errorString_.clear();
109 httpStatus_ = 0;
110}
111
112void AuthRequest::finish() {
113 QByteArray data;

Callers

nothing calls this directly

Calls 4

setUrlMethod · 0.80
isEmptyMethod · 0.80
urlMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected