Class: QgsHttpHeaderWidget¶
Display referer http header field and collapsible table of key/value pairs
Added in version 3.24.
Class Hierarchy¶
Base classes¶
Methods
fill the inner header map from the settings defined at key |
|
Sets the widget from the headers |
|
update the settings with the http headers present in the inner map. |
- class qgis.gui.QgsHttpHeaderWidget[source]¶
Bases:
QWidget
- __init__(parent: QWidget | None = None)
Default constructor
- Parameters:
parent (Optional[QWidget] = None) – parent widget
- httpHeaders(self) QgsHttpHeaders [source]¶
- Return type:
- Returns:
build a new
:py:class:`QgsHttpHeaders`
according to data in
the UI
- setFromSettings(self, settings: QgsSettings, key: str | None)[source]¶
fill the inner header map from the settings defined at
key
See also
QgsHttpHeaders.setFromSettings()
- Parameters:
settings (QgsSettings)
key (Optional[str])
Deprecated since version 3.30: Use setFromHeaders instead.
- setHeaders(self, headers: QgsHttpHeaders)[source]¶
Sets the widget from the headers
Added in version 3.30.
- Parameters:
headers (QgsHttpHeaders)
- updateSettings(self, settings: QgsSettings, key: str | None)[source]¶
update the
settings
with the http headers present in the inner map.See also
QgsHttpHeaders.updateSettings()
- Parameters:
settings (QgsSettings)
key (Optional[str])
Deprecated since version 3.30: Use a variant map for settinds directly.