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

Function read_response_handler

example/plugins/c-api/thread_pool/psi.cc:931–949  ·  view source on GitHub ↗

------------------------------------------------------------------------- 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: -------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

929 Return Value:
930 -------------------------------------------------------------------------*/
931static int
932read_response_handler(TSCont contp ATS_UNUSED, TSEvent event, void *edata)
933{
934 TSHttpTxn txnp = static_cast<TSHttpTxn>(edata);
935
936 switch (event) {
937 case TS_EVENT_HTTP_READ_RESPONSE_HDR:
938 if (transformable(txnp)) {
939 Dbg(dbg_ctl, "Add a transformation");
940 transform_add(txnp);
941 }
942 TSHttpTxnReenable(txnp, TS_EVENT_HTTP_CONTINUE);
943 return 0;
944 default:
945 break;
946 }
947
948 return 0;
949}
950
951/*-------------------------------------------------------------------------
952 TSPluginInit

Callers

nothing calls this directly

Calls 3

TSHttpTxnReenableFunction · 0.85
transformableFunction · 0.70
transform_addFunction · 0.70

Tested by

no test coverage detected