68 EmptyResponseIsValid = 1 << 0,
124 ErrorCode post( QNetworkRequest &request, QIODevice *data,
bool forceRefresh = false,
QgsFeedback *feedback =
nullptr );
131 ErrorCode post( QNetworkRequest &request, const QByteArray &data,
bool forceRefresh = false,
QgsFeedback *feedback =
nullptr );
153 ErrorCode head( QNetworkRequest &request,
bool forceRefresh = false,
QgsFeedback *feedback =
nullptr );
180 ErrorCode put( QNetworkRequest &request, const QByteArray &data,
QgsFeedback *feedback =
nullptr );
204 QString errorMessage()
const {
return mErrorMessage; }
215 QString authCfg()
const;
221 void setAuthCfg(
const QString &authCfg );
247 void uploadProgress( qint64 bytesReceived, qint64 bytesTotal );
255 void replyProgress( qint64, qint64 );
256 void replyFinished();
257 void requestTimedOut( QNetworkReply *reply );
262 QNetworkReply *mReply =
nullptr;
264 Qgis::HttpMethod mMethod =
Qgis::HttpMethod::Get;
267 QIODevice *mPayloadData;
273 QString mErrorMessage;
281 bool mIsAborted = false;
284 bool mForceRefresh = false;
287 bool mTimedout = false;
290 bool mGotNonEmptyResponse = false;
295 int mExpirationSec = 30;
301 QString errorMessageFailedAuth();
303 void sendRequestToNetworkAccessManager( const QNetworkRequest &request );
305 void abortIfNotPartialContentReturned();
Encapsulates a network reply within a container which is inexpensive to copy and safe to pass between...