QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
Class defining request with data. More...
#include <qgsbufferserverrequest.h>
Public Member Functions | |
QgsBufferServerRequest (const QString &url, QgsServerRequest::Method method=QgsServerRequest::GetMethod, const QgsServerRequest::Headers &headers=QgsServerRequest::Headers(), QByteArray *data=nullptr) | |
Constructor. More... | |
QgsBufferServerRequest (const QUrl &url, QgsServerRequest::Method method=QgsServerRequest::GetMethod, const QgsServerRequest::Headers &headers=QgsServerRequest::Headers(), QByteArray *data=nullptr) | |
Constructor. More... | |
QByteArray | data () const override |
Returns post/put data Check for QByteArray::isNull() to check if data is available. More... | |
Public Member Functions inherited from QgsServerRequest | |
QgsServerRequest ()=default | |
Constructor. More... | |
QgsServerRequest (const QString &url, QgsServerRequest::Method method=QgsServerRequest::GetMethod, const QgsServerRequest::Headers &headers=QgsServerRequest::Headers()) | |
Constructor. More... | |
QgsServerRequest (const QUrl &url, QgsServerRequest::Method method=QgsServerRequest::GetMethod, const QgsServerRequest::Headers &headers=QgsServerRequest::Headers()) | |
Constructor. More... | |
virtual | ~QgsServerRequest ()=default |
destructor More... | |
QString | header (const QString &name) const |
Returns the header value. More... | |
QMap< QString, QString > | headers () const |
Returns the header map. More... | |
QgsServerRequest::Method | method () const |
QUrl | originalUrl () const |
Returns the request url as seen by the web server, by default this is equal to the url seen by QGIS server. More... | |
QString | parameter (const QString &key) const |
Gets a parameter value. More... | |
QgsServerRequest::Parameters | parameters () const |
Returns a map of query parameters with keys converted to uppercase. More... | |
void | removeHeader (const QString &name) |
Remove an header. More... | |
void | removeParameter (const QString &key) |
Remove a parameter. More... | |
QgsServerParameters | serverParameters () const |
Returns parameters. More... | |
void | setHeader (const QString &name, const QString &value) |
Set an header. More... | |
void | setMethod (QgsServerRequest::Method method) |
Set the request method. More... | |
void | setParameter (const QString &key, const QString &value) |
Set a parameter. More... | |
void | setUrl (const QUrl &url) |
Set the request url. More... | |
QUrl | url () const |
Additional Inherited Members | |
Public Types inherited from QgsServerRequest | |
typedef QMap< QString, QString > | Headers |
enum | Method { HeadMethod, PutMethod, GetMethod, PostMethod, DeleteMethod } |
HTTP Method (or equivalent) used for the request. More... | |
typedef QMap< QString, QString > | Parameters |
Protected Member Functions inherited from QgsServerRequest | |
void | setOriginalUrl (const QUrl &url) |
Set the request original url (the request url as seen by the web server) More... | |
Class defining request with data.
Definition at line 35 of file qgsbufferserverrequest.h.
QgsBufferServerRequest::QgsBufferServerRequest | ( | const QString & | url, |
QgsServerRequest::Method | method = QgsServerRequest::GetMethod , |
||
const QgsServerRequest::Headers & | headers = QgsServerRequest::Headers() , |
||
QByteArray * | data = nullptr |
||
) |
Constructor.
url | the url string |
method | the request method, default to GET |
headers | optional dictionary of header name-values |
data | optional POST data |
Definition at line 26 of file qgsbufferserverrequest.cpp.
QgsBufferServerRequest::QgsBufferServerRequest | ( | const QUrl & | url, |
QgsServerRequest::Method | method = QgsServerRequest::GetMethod , |
||
const QgsServerRequest::Headers & | headers = QgsServerRequest::Headers() , |
||
QByteArray * | data = nullptr |
||
) |
Constructor.
url | QUrl |
method | the request method, default to GET |
headers | optional dictionary of header name-values |
data | optional POST data |
Definition at line 35 of file qgsbufferserverrequest.cpp.
|
inlineoverridevirtual |
Returns post/put data Check for QByteArray::isNull() to check if data is available.
Reimplemented from QgsServerRequest.
Definition at line 59 of file qgsbufferserverrequest.h.