Class: QgsHttpHeaderWidget

Display referer http header field and collapsible table of key/value pairs

Added in version 3.24.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsHttpHeaderWidget

Base classes

QWidget

QObject

QPaintDevice

Methods

httpHeaders

setFromSettings

fill the inner header map from the settings defined at key

setHeaders

Sets the widget from the headers

updateSettings

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:

QgsHttpHeaders

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:

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:

Deprecated since version 3.30: Use a variant map for settinds directly.