QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsbufferserverrequest.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsbufferserverrequest.h
3
4 Define response wrapper for storing request in buffer
5 -------------------
6 begin : 2017-01-03
7 copyright : (C) 2017 by David Marteau
8 email : david dot marteau at 3liz dot com
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19#ifndef QGSBUFFERSERVERREQUEST_H
20#define QGSBUFFERSERVERREQUEST_H
21
22#include "qgis_server.h"
23#include "qgsserverrequest.h"
24
30class SERVER_EXPORT QgsBufferServerRequest : public QgsServerRequest
31{
32 public:
33
43
53
54 QByteArray data() const override { return mData; }
55
56 private:
57 QByteArray mData;
58};
59
60#endif
QgsBufferServerRequest(const QString &url, QgsServerRequest::Method method=QgsServerRequest::GetMethod, const QgsServerRequest::Headers &headers=QgsServerRequest::Headers(), QByteArray *data=nullptr)
Constructor.
QByteArray data() const override
Returns post/put data Check for QByteArray::isNull() to check if data is available.
Method
HTTP Method (or equivalent) used for the request.
QgsServerRequest()=default
QUrl url() const
Returns the request URL as seen by QGIS server.
QMap< QString, QString > headers() const
Returns the header map.
QgsServerRequest::Method method() const
Returns the request method.
QMap< QString, QString > Headers