19#ifndef QGSSERVERREQUEST_H
20#define QGSSERVERREQUEST_H
24#include "qgis_server.h"
78 Q_ENUM( RequestHeader )
109 static QString methodToString( const
Method &method );
138 virtual
void setParameter( const QString &key, const QString &value );
143 QString parameter( const QString &key, const QString &defaultValue = QString() ) const;
148 virtual
void removeParameter( const QString &key );
155 virtual QString header( const QString &name ) const;
162 virtual QString header( const
RequestHeader &headerEnum ) const;
169 void setHeader( const QString &name, const QString &value );
175 QMap<QString, QString> headers() const;
182 void removeHeader( const QString &name );
189 virtual QByteArray data() const;
194 virtual
void setUrl( const QUrl &url );
203 QUrl originalUrl() const;
213 QUrl baseUrl() const;
224 const QString queryParameter( const QString &name, const QString &defaultValue = QString() ) const;
233 void setOriginalUrl( const QUrl &url );
240 void setBaseUrl( const QUrl &url );
248 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.