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

Method InterceptPlugin

src/tscpp/api/InterceptPlugin.cc:113–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111} // namespace
112
113InterceptPlugin::InterceptPlugin(Transaction &transaction, InterceptPlugin::Type type) : TransactionPlugin(transaction)
114{
115 TSCont cont = TSContCreate(handleEvents, TSMutexCreate());
116 state_ = new State(cont, this);
117 TSContDataSet(cont, state_);
118 TSHttpTxn txn = static_cast<TSHttpTxn>(transaction.getAtsHandle());
119 if (type == SERVER_INTERCEPT) {
120 TSHttpTxnServerIntercept(cont, txn);
121 } else {
122 TSHttpTxnIntercept(cont, txn);
123 }
124}
125
126InterceptPlugin::~InterceptPlugin()
127{

Callers

nothing calls this directly

Calls 6

TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85
TSContDataSetFunction · 0.85
TSHttpTxnServerInterceptFunction · 0.85
TSHttpTxnInterceptFunction · 0.85
getAtsHandleMethod · 0.80

Tested by

no test coverage detected