19 #ifndef QGSSERVERREQUEST_H
20 #define QGSSERVERREQUEST_H
24 #include "qgis_server.h"
88 Q_ENUM( RequestHeader )
127 static QString methodToString( const
Method &method );
157 virtual
void setParameter( const QString &key, const QString &value );
162 QString parameter( const QString &key, const QString &defaultValue = QString() ) const;
167 virtual
void removeParameter( const QString &key );
174 virtual QString header( const QString &name ) const;
181 virtual QString header( const
RequestHeader &headerEnum ) const;
188 void setHeader( const QString &name, const QString &value );
194 QMap<QString, QString> headers() const;
201 void removeHeader( const QString &name );
208 virtual QByteArray data() const;
213 virtual
void setUrl( const QUrl &url );
222 QUrl originalUrl() const;
232 QUrl baseUrl() const;
243 const QString queryParameter( const QString &name, const QString &defaultValue = QString( ) ) const;
253 void setOriginalUrl( const QUrl &url );
260 void setBaseUrl( const QUrl &url );
268 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