Gio.DBusMessage.prototype.get_header

function get_header(header_field: Gio.DBusMessageHeaderField): GLib.Variant {
    // Gjs wrapper for g_dbus_message_get_header()
}
  

Gets a header field on message.

Since 2.26

header_field

A 8-bit unsigned integer (typically a value from the Gio.DBusMessageHeaderField enumeration)

Returns

A GLib.Variant with the value if the header was found, null otherwise. Do not free, it is owned by message.