addHeaderHandler
fun addHeaderHandler(signal: String, header: String, callback: <Error class: unknown class>): <Error class: unknown class>
Adds a signal handler to @msg for @signal.
Similar to func@GObject.signal_connect, but the @callback will only be run if @msg's incoming messages headers (that is, the request_headers
) contain a header named @header.
Return
the handler ID from func@GObject.signal_connect
Parameters
signal
signal to connect the handler to.
header
HTTP response header to match against
callback
the header handler