example/thread-pool/psi.c
static int
read_response_handler(INKCont contp, INKEvent event, void *edata)
{
  INKHttpTxn txnp = (INKHttpTxn) edata;

  switch (event) {
  case INK_EVENT_HTTP_READ_RESPONSE_HDR:
    if (transformable(txnp)) {
      INKDebug(DBG_TAG, "Add a transformation");
      transform_add(txnp);
    }
    INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
    return 0;
  default:
    break;
  }

  return 0;
}
/*-------------------------------------------------------------------------
  read_response_handler
  Handler for events related to hook READ_RESPONSE

  Input:
    contp      continuation for the current transaction
    event      event received
    data       pointer on eventual data
  Output :
  Return Value:
  -------------------------------------------------------------------------*/
read_response_handler
Handler for events related to hook READ_RESPONSE

contp      continuation for the current transaction
event      event received
data       pointer on eventual data
Output :
Return Value.
read_response_handler Handler for events related to hook READ_RESPONSE contp continuation for the current transaction event event received data pointer on eventual data Output : Return Value .
static int
read_response_handler(INKCont contp, INKEvent event, void *edata)
{
  INKHttpTxn txnp = (INKHttpTxn) edata;
  switch (event) {
  case INK_EVENT_HTTP_READ_RESPONSE_HDR:
    if (transformable(txnp)) {
      INKDebug(DBG_TAG, "Add a transformation");
      transform_add(txnp);
    }
    INKHttpTxnReenable(txnp, INK_EVENT_HTTP_CONTINUE);
    return 0;
  default:
    break;
  }
  return 0;
}
static int read_response_handler ( INKCont contp , INKEvent event , void * edata ) { INKHttpTxn txnp = ( INKHttpTxn ) edata ; switch ( event ) { case INK_EVENT_HTTP_READ_RESPONSE_HDR : if ( transformable ( txnp ) ) { INKDebug ( DBG_TAG , " " ) ; transform_add ( txnp ) ; } INKHttpTxnReenable ( txnp , INK_EVENT_HTTP_CONTINUE ) ; return 0 ; default : break ; } return 0 ; }
read_response_handler
Handler for events related to hook READ_RESPONSE
read_response_handler Handler for events related to hook READ_RESPONSE