MCPcopy Create free account
hub / github.com/apache/trafficserver / cache_print_plugin

Function cache_print_plugin

example/plugins/c-api/cache_scan/cache_scan.cc:479–490  ·  view source on GitHub ↗

---------------------------------------------------------------------------- handler for http txn events

Source from the content-addressed store, hash-verified

477//----------------------------------------------------------------------------
478// handler for http txn events
479static int
480cache_print_plugin(TSCont contp, TSEvent event, void *edata)
481{
482 switch (event) {
483 case TS_EVENT_HTTP_READ_REQUEST_HDR:
484 return setup_request(contp, static_cast<TSHttpTxn>(edata));
485 default:
486 break;
487 }
488 TSHttpTxnReenable(static_cast<TSHttpTxn>(edata), TS_EVENT_HTTP_CONTINUE);
489 return TS_SUCCESS;
490}
491
492//----------------------------------------------------------------------------
493void

Callers

nothing calls this directly

Calls 2

setup_requestFunction · 0.85
TSHttpTxnReenableFunction · 0.85

Tested by

no test coverage detected