QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
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
25
32
class
SERVER_EXPORT
QgsFcgiServerRequest
:
public
QgsServerRequest
33
{
34
public
:
35
QgsFcgiServerRequest
();
36
37
QByteArray
data
()
const override
;
38
42
bool
hasError
()
const
{
return
mHasError; }
43
50
QString
header
(
const
QString &name )
const override
;
51
52
private
:
53
void
readData();
54
55
// Log request info: print debug infos
56
// about the request
57
void
printRequestInfos(
const
QUrl &url )
const
;
58
59
// Fill the url given in argument with
60
// the server name, the server port and the schema (calculated from HTTPS)
61
void
fillUrl( QUrl &url )
const
;
62
63
QByteArray mData;
64
bool
mHasError =
false
;
65
};
66
67
#endif
QgsServerRequest
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Definition:
qgsserverrequest.h:38
QgsFcgiServerRequest
Class defining fcgi request.
Definition:
qgsfcgiserverrequest.h:32
qgsserverrequest.h
QgsServerRequest::header
virtual QString header(const QString &name) const
Returns the header value.
Definition:
qgsserverrequest.cpp:56
QgsFcgiServerRequest::hasError
bool hasError() const
Returns true if an error occurred during initialization.
Definition:
qgsfcgiserverrequest.h:42
QgsServerRequest::data
virtual QByteArray data() const
Returns post/put data Check for QByteArray::isNull() to check if data is available.
Definition:
qgsserverrequest.cpp:126
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17