84 ErrorCode get( QNetworkRequest &request,
bool forceRefresh =
false,
QgsFeedback *feedback =
nullptr );
107 ErrorCode post( QNetworkRequest &request, QIODevice *data,
bool forceRefresh =
false,
QgsFeedback *feedback =
nullptr );
114 ErrorCode post( QNetworkRequest &request,
const QByteArray &data,
bool forceRefresh =
false,
QgsFeedback *feedback =
nullptr );
136 ErrorCode head( QNetworkRequest &request,
bool forceRefresh =
false,
QgsFeedback *feedback =
nullptr );
155 ErrorCode put( QNetworkRequest &request, QIODevice *data,
QgsFeedback *feedback =
nullptr );
163 ErrorCode put( QNetworkRequest &request,
const QByteArray &data,
QgsFeedback *feedback =
nullptr );
182 ErrorCode deleteResource( QNetworkRequest &request,
QgsFeedback *feedback =
nullptr );
198 QString authCfg()
const;
204 void setAuthCfg(
const QString &authCfg );
230 void uploadProgress( qint64, qint64 );
238 void replyProgress( qint64, qint64 );
239 void replyFinished();
240 void requestTimedOut( QNetworkReply *reply );
254 QNetworkReply *mReply =
nullptr;
256 Method mMethod = Get;
259 QIODevice *mPayloadData;
265 QString mErrorMessage;
268 ErrorCode mErrorCode = NoError;
273 bool mIsAborted =
false;
276 bool mForceRefresh =
false;
279 bool mTimedout =
false;
282 bool mGotNonEmptyResponse =
false;
284 int mExpirationSec = 30;
286 QPointer< QgsFeedback > mFeedback;
288 ErrorCode doRequest( Method method, QNetworkRequest &request,
bool forceRefresh,
QgsFeedback *feedback =
nullptr );
290 QString errorMessageFailedAuth();
292 void sendRequestToNetworkAccessManager(
const QNetworkRequest &request );
294 void abortIfNotPartialContentReturned();
Encapsulates a network reply within a container which is inexpensive to copy and safe to pass between...