19 #ifndef QGSSERVERREQUEST_H
20 #define QGSSERVERREQUEST_H
24 #include "qgis_server.h"
94 Q_ENUM( RequestHeader )
133 static QString methodToString( const
Method &method );
163 virtual
void setParameter( const QString &key, const QString &value );
168 QString parameter( const QString &key, const QString &defaultValue = QString() ) const;
173 virtual
void removeParameter( const QString &key );
180 virtual QString header( const QString &name ) const;
187 virtual QString header( const
RequestHeader &headerEnum ) const;
194 void setHeader( const QString &name, const QString &value );
200 QMap<QString, QString> headers() const;
207 void removeHeader( const QString &name );
214 virtual QByteArray data() const;
219 virtual
void setUrl( const QUrl &url );
228 QUrl originalUrl() const;
238 QUrl baseUrl() const;
249 const QString queryParameter( const QString &name, const QString &defaultValue = QString( ) ) const;
259 void setOriginalUrl( const QUrl &url );
266 void setBaseUrl( const QUrl &url );
274 Method mMethod = GetMethod;
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Method
HTTP Method (or equivalent) used for the request.
QMap< QString, QString > Parameters
QMap< QString, QString > Headers
RequestHeader
The internal HTTP Header used for the request as enum.
@ X_QGIS_WMTS_SERVICE_URL