18 #ifndef QDJANGO_HTTP_RESPONSE_H
19 #define QDJANGO_HTTP_RESPONSE_H
23 #include "QDjangoHttp_p.h"
25 class QDjangoHttpResponsePrivate;
40 MovedPermanently = 301,
44 AuthorizationRequired = 401,
47 MethodNotAllowed = 405,
48 InternalServerError = 500,
54 QByteArray body()
const;
55 void setBody(
const QByteArray &body);
57 QString header(
const QString &key)
const;
58 void setHeader(
const QString &key,
const QString &value);
60 virtual bool isReady()
const;
62 QString reasonPhrase()
const;
63 int statusCode()
const;
64 void setStatusCode(
int code);
76 QDjangoHttpResponsePrivate*
const d;
77 friend class QDjangoFastCgiConnection;
78 friend class QDjangoHttpConnection;