QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
server
qgsbufferserverrequest.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsbufferserverrequest.cpp
3
4
Define response wrapper for bbuffer response
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
20
#include "
qgsbufferserverrequest.h
"
21
22
QgsBufferServerRequest::QgsBufferServerRequest
(
const
QString &url,
Method
method,
const
QgsServerRequest::Headers
&headers, QByteArray *data )
23
:
QgsServerRequest
( url, method, headers )
24
{
25
if
(
data
)
26
{
27
mData = *
data
;
28
}
29
}
30
31
QgsBufferServerRequest::QgsBufferServerRequest
(
const
QUrl &url,
Method
method,
const
QgsServerRequest::Headers
&headers, QByteArray *data )
32
:
QgsServerRequest
( url, method, headers )
33
{
34
if
(
data
)
35
{
36
mData = *
data
;
37
}
38
}
QgsServerRequest
Definition:
qgsserverrequest.h:38
QgsBufferServerRequest::data
QByteArray data() const override
Returns post/put data Check for QByteArray::isNull() to check if data is available.
Definition:
qgsbufferserverrequest.h:55
qgsbufferserverrequest.h
QgsBufferServerRequest::QgsBufferServerRequest
QgsBufferServerRequest(const QString &url, QgsServerRequest::Method method=QgsServerRequest::GetMethod, const QgsServerRequest::Headers &headers=QgsServerRequest::Headers(), QByteArray *data=nullptr)
Constructor.
Definition:
qgsbufferserverrequest.cpp:22
QgsServerRequest::Method
Method
HTTP Method (or equivalent) used for the request.
Definition:
qgsserverrequest.h:65
QgsServerRequest::Headers
QMap< QString, QString > Headers
Definition:
qgsserverrequest.h:60
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17