17#include <QHttpMultiPart>
19#define REQUEST_UPLOAD_FILE_KEY "_file_"
53 virtual QString makeUpload()
const;
71 const QString& request()
const;
77 void setRequest(
const QString &newRequest);
83 const QMap<QString, QVariant> &args()
const;
90 void addArg(
const QString& key,
const QVariant& val);
96 void setArgs(
const QMap<QString, QVariant> &newArgs);
103 QString argsToUrl()
const;
111 QSharedPointer<QHttpMultiPart> argsToMultipartFormData()
const;
114 QMap<QString, QVariant> _args;
The iRequest class Is main interface for all custom requests.
RequestMethod
RequestMethod Tgis islist of supported requests types of the requests.
@ Post
general post request
@ Get
general ger request, all request data sent as a url line
virtual QString baseAddress() const =0
baseAddress This method return base domain of remote server.
virtual RequestMethod method() const =0
method returns method of the request.
QHash< QString, QSharedPointer< QJsonObject > > ExtraJsonObjects
ExtraJsonObjects hash map of the extra objects of the message.