Message.addStatusCodeHandler

Adds a signal handler to @msg for @signal, as with g_signal_connect(), but the @callback will only be run if @msg has the status @status_code.

@signal must be a signal that will be emitted after @msg's status is set. For a client #SoupMessage, this means it can't be a "wrote" signal. For a server #SoupMessage, this means it can't be a "got" signal.

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

Parameters

signal string

signal to connect the handler to.

statusCode uint

status code 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