QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
server
qgsfcgiserverrequest.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfcgiserverrequest.h
3
4
Define response wrapper for fcgi request
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 QGSFCGISERVERREQUEST_H
20
#define QGSFCGISERVERREQUEST_H
21
22
23
#include "
qgsserverrequest.h
"
24
30
class
SERVER_EXPORT
QgsFcgiServerRequest
:
public
QgsServerRequest
31
{
32
public
:
33
QgsFcgiServerRequest
();
34
35
QByteArray
data
()
const override
;
36
40
bool
hasError
()
const
{
return
mHasError; }
41
42
using
QgsServerRequest::header
;
49
QString
header
(
const
QString &name )
const override
;
50
51
private
:
52
void
readData();
53
54
// Log request info: print debug infos
55
// about the request
56
void
printRequestInfos(
const
QUrl &url )
const
;
57
58
// Fill the url given in argument with
59
// the server name, the server port and the schema (calculated from HTTPS)
60
void
fillUrl( QUrl &url )
const
;
61
62
QByteArray mData;
63
bool
mHasError =
false
;
64
};
65
66
#endif
QgsFcgiServerRequest::hasError
bool hasError() const
Returns true if an error occurred during initialization.
Definition
qgsfcgiserverrequest.h:40
QgsFcgiServerRequest::QgsFcgiServerRequest
QgsFcgiServerRequest()
Definition
qgsfcgiserverrequest.cpp:34
QgsServerRequest::header
virtual QString header(const QString &name) const
Returns the header value.
Definition
qgsserverrequest.cpp:60
QgsServerRequest::QgsServerRequest
QgsServerRequest()=default
QgsServerRequest::data
virtual QByteArray data() const
Returns post/put data Check for QByteArray::isNull() to check if data is available.
Definition
qgsserverrequest.cpp:128
qgsserverrequest.h
Generated on
for QGIS API Documentation by
1.17.0