36 Q_PROPERTY(QString remoteAddress READ remoteAddress)
37 Q_PROPERTY(quint16 remotePort READ remotePort)
38 Q_PROPERTY(QString method READ method)
39 Q_PROPERTY(QUrl url READ url)
40 Q_PROPERTY(QString path READ path)
41 Q_PROPERTY(QString httpVersion READ httpVersion)
88 HttpMethod method()
const;
92 const QString methodString()
const;
97 const QUrl &url()
const;
101 const QString path()
const;
105 const QString &httpVersion()
const;
119 QString header(
const QString &field);
122 const QString &remoteAddress()
const;
125 quint16 remotePort()
const;
129 const QByteArray &body()
const;
135 bool successful()
const;
153 void data(
const QByteArray &data);
160 void appendBody(
const QByteArray &body);
165 static QString MethodToString(HttpMethod method);
166 void setMethod(HttpMethod method);
167 void setVersion(
const QString &version);
168 void setUrl(
const QUrl &url);
170 void setSuccessful(
bool success);
171 void setRemoteAddress(
const QString &address);
172 void setRemotePort(quint16 port);
HttpMethod
Request method enumeration.
#define TTK_MODULE_EXPORT
The class of the http connection.
The class of the http connection private.
The class of the http request.
#define TTK_DECLARE_PRIVATE(Class)
QHash< QString, QString > HeaderHash
The class of the http request private.