20 #ifndef QGSREQUESTHANDLER_H
21 #define QGSREQUESTHANDLER_H
27 #include "qgis_server.h"
61 void setResponseHeader(
const QString &name,
const QString &value );
64 void removeResponseHeader(
const QString &name );
67 QString responseHeader(
const QString &name )
const;
70 QMap<QString, QString> responseHeaders()
const;
73 void setRequestHeader(
const QString &name,
const QString &value );
76 void removeRequestHeader(
const QString &name );
79 QString requestHeader(
const QString &name )
const;
82 QMap<QString, QString> requestHeaders()
const;
88 void appendBody(
const QByteArray &body );
91 bool exceptionRaised()
const;
97 QByteArray body()
const;
100 QByteArray data()
const;
106 void setStatusCode(
int code );
109 int statusCode()
const;
116 QMap<QString, QString> parameterMap()
const;
119 void setParameter(
const QString &key,
const QString &value );
122 QString parameter(
const QString &key )
const;
125 void removeParameter(
const QString &key );
134 QString
format()
const {
return mFormat; }
137 bool headersSent()
const;
144 void setupParameters();
148 QString mFormatString;
150 bool mExceptionRaised;