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

Function add_header_plugin

example/plugins/c-api/add_header/add_header.cc:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static int
109add_header_plugin(TSCont contp, TSEvent event, void *edata)
110{
111 TSHttpTxn txnp = static_cast<TSHttpTxn>(edata);
112
113 switch (event) {
114 case TS_EVENT_HTTP_READ_REQUEST_HDR:
115 add_header(txnp, contp);
116 return 0;
117 default:
118 break;
119 }
120 return 0;
121}
122
123void
124TSPluginInit(int argc, const char *argv[])

Callers

nothing calls this directly

Calls 1

add_headerFunction · 0.70

Tested by

no test coverage detected