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

Function transactionContFunc

tests/gold_tests/pluginTest/tsapi/test_tsapi.cc:174–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174int
175transactionContFunc(TSCont, TSEvent event, void *eventData)
176{
177 logFile << "Transaction: event=" << TSHttpEventNameLookup(event) << std::endl;
178
179 Dbg(dbg_ctl, "Transaction: event=%s(%d) eventData=%p", TSHttpEventNameLookup(event), event, eventData);
180
181 Dbg(off_dbg_ctl, "Should not see this, tag does not match regular expression");
182
183 switch (event) {
184 case TS_EVENT_HTTP_READ_REQUEST_HDR: {
185 auto txn = static_cast<TSHttpTxn>(eventData);
186
187 testsForReadReqHdrHook(txn);
188
189 TSHttpTxnReenable(txn, TS_EVENT_HTTP_CONTINUE);
190 } break;
191
192 case TS_EVENT_HTTP_SEND_REQUEST_HDR: {
193 auto txn = static_cast<TSHttpTxn>(eventData);
194
195 testsForSendReqHdrHook(txn);
196
197 TSHttpTxnReenable(txn, TS_EVENT_HTTP_CONTINUE);
198 } break;
199
200 default: {
201 TSReleaseAssert(false);
202 } break;
203
204 } // end switch
205
206 return 0;
207}
208
209int
210globalContFunc(TSCont, TSEvent event, void *eventData)

Callers

nothing calls this directly

Calls 4

TSHttpEventNameLookupFunction · 0.85
testsForReadReqHdrHookFunction · 0.85
TSHttpTxnReenableFunction · 0.85
testsForSendReqHdrHookFunction · 0.85

Tested by

no test coverage detected