54 void setHeader(QByteArray name, QByteArray value);
62 void setHeader(QByteArray name,
int value);
65 QMap<QByteArray,QByteArray>& getHeaders();
68 QMap<QByteArray,HttpCookie>& getCookies();
74 void setStatus(
int statusCode, QByteArray description=QByteArray());
77 int getStatusCode()
const;
92 void write(QByteArray data,
bool lastPart=
false);
97 bool hasSentLastPart()
const;
110 void redirect(
const QByteArray& url);
123 bool isConnected()
const;
152 bool writeToSocket(QByteArray data);
165 #endif // HTTPRESPONSE_H QMap< QByteArray, QByteArray > headers
QMap< QByteArray, HttpCookie > cookies