add_header_handler


Description:

public uint add_header_handler (string @signal, string header, Callback callback, void* user_data)

Adds a signal handler to this for signal, as with connect, but the callback will only be run if this's incoming messages headers (that is, the request_headers for a client Message, or the response_headers for a server Message) contain a header named header.

Parameters:

this

a Message

header

HTTP response header to match against

callback

the header handler

signal

signal to connect the handler to.

user_data

data to pass to handler_cb

Returns:

the handler ID from connect