Class: QgsHttpHeaderWidget

Displays 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

Returns the headers as defined in the widget.

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]

Returns the headers as defined in the widget.

Return type:

QgsHttpHeaders

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.