This class implements simple http header management.
More...
#include <qgshttpheaders.h>
This class implements simple http header management.
- Since
- QGIS 3.24
Definition at line 35 of file qgshttpheaders.h.
◆ QgsHttpHeaders() [1/3]
QgsHttpHeaders::QgsHttpHeaders |
( |
const QMap< QString, QVariant > & |
headers | ) |
|
◆ QgsHttpHeaders() [2/3]
QgsHttpHeaders::QgsHttpHeaders |
( |
| ) |
|
|
default |
◆ QgsHttpHeaders() [3/3]
QgsHttpHeaders::QgsHttpHeaders |
( |
const QgsSettings & |
settings, |
|
|
const QString & |
key = QString() |
|
) |
| |
◆ ~QgsHttpHeaders()
QgsHttpHeaders::~QgsHttpHeaders |
( |
| ) |
|
|
virtualdefault |
◆ keys()
QList< QString > QgsHttpHeaders::keys |
( |
| ) |
const |
◆ operator=()
QgsHttpHeaders & QgsHttpHeaders::operator= |
( |
const QMap< QString, QVariant > & |
headers | ) |
|
◆ operator[]() [1/2]
QVariant & QgsHttpHeaders::operator[] |
( |
const QString & |
key | ) |
|
◆ operator[]() [2/2]
const QVariant QgsHttpHeaders::operator[] |
( |
const QString & |
key | ) |
const |
◆ setFromSettings()
void QgsHttpHeaders::setFromSettings |
( |
const QgsSettings & |
settings, |
|
|
const QString & |
key = QString() |
|
) |
| |
Loads headers from the settings.
- Parameters
-
settings | |
key | sub group path |
Definition at line 70 of file qgshttpheaders.cpp.
◆ updateNetworkRequest()
bool QgsHttpHeaders::updateNetworkRequest |
( |
QNetworkRequest & |
request | ) |
const |
Updates a request by adding all the HTTP headers.
- Returns
true
if the update succeed
Definition at line 44 of file qgshttpheaders.cpp.
◆ updateSettings()
void QgsHttpHeaders::updateSettings |
( |
QgsSettings & |
settings, |
|
|
const QString & |
key = QString() |
|
) |
| const |
Updates the settings by adding all the http headers in the path "key/KEY_PREFIX/".
- Parameters
-
settings | |
key | sub group path |
Definition at line 53 of file qgshttpheaders.cpp.
◆ KEY_PREFIX
const QString QgsHttpHeaders::KEY_PREFIX = "http-header/" |
|
static |
The documentation for this class was generated from the following files: