51 void setHeader(QByteArray name, QByteArray value);
59 void setHeader(QByteArray name,
int value);
62 bool hasHeader(
const QByteArray name)
const;
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;
128 QMap<QByteArray,QByteArray> headers;
137 QByteArray statusText;
149 QMap<QByteArray,HttpCookie> cookies;
152 bool writeToSocket(QByteArray data);
163 #endif // HTTPRESPONSE_H HTTP cookie as defined in RFC 2109.
This object represents a HTTP response, used to return something to the web client.