The handler function for the plugin’s parent continuation is implemented as follows:
static int auth_plugin (INKCont contp, INKEvent event, void *edata) { INKHttpTxn txnp = (INKHttpTxn) edata; switch (event) { case INK_EVENT_HTTP_OS_DNS: handle_dns (txnp, contp); return 0; case INK_EVENT_HTTP_SEND_RESPONSE_HDR: handle_response (txnp); return 0; default: break; } return 0; }