19#ifndef QGSSERVERREQUEST_H
20#define QGSSERVERREQUEST_H
24#include "qgis_server.h"
79 Q_ENUM( RequestHeader )
110 static QString methodToString( const
Method &method );
139 virtual
void setParameter( const QString &key, const QString &value );
144 QString parameter( const QString &key, const QString &defaultValue = QString() ) const;
149 virtual
void removeParameter( const QString &key );
156 virtual QString header( const QString &name ) const;
163 virtual QString header( const
RequestHeader &headerEnum ) const;
170 void setHeader( const QString &name, const QString &value );
176 QMap<QString, QString> headers() const;
183 void removeHeader( const QString &name );
190 virtual QByteArray data() const;
195 virtual
void setUrl( const QUrl &url );
204 QUrl originalUrl() const;
214 QUrl baseUrl() const;
225 const QString queryParameter( const QString &name, const QString &defaultValue = QString( ) ) const;
235 void setOriginalUrl( const QUrl &url );
242 void setBaseUrl( const QUrl &url );
250 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_WMS_SERVICE_URL
The QGIS WMS service URL.
@ ACCEPT
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept.
@ X_QGIS_WCS_SERVICE_URL
The QGIS WCS service URL.
@ USER_AGENT
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent.
@ X_QGIS_WFS_SERVICE_URL
The QGIS WFS service URL.
@ X_FORWARDED_FOR
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For.
@ X_FORWARDED_PROTO
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto.
@ X_QGIS_WMTS_SERVICE_URL
The QGIS WMTS service URL.
@ X_QGIS_SERVICE_URL
The QGIS service URL.
@ X_FORWARDED_HOST
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host.
@ FORWARDED
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded, https://tools....
@ HOST
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host.
@ AUTHORIZATION
Https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization.