Message.addHeaderHandler

Adds a signal handler to @msg for @signal, as with g_signal_connect(), but the @callback will only be run if @msg's incoming messages headers (that is, the <literal>request_headers</literal> for a client #SoupMessage, or the <literal>response_headers</literal> for a server #SoupMessage) contain a header named @header.

class Message
uint
addHeaderHandler
(
string signal
,
string header
,
GCallback callback
,
void* userData
)

Parameters

signal string

signal to connect the handler to.

header string

HTTP response header to match against

callback GCallback

the header handler

userData void*

data to pass to @handler_cb

Return Value

Type: uint

the handler ID from g_signal_connect()

Meta