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

Function auth_plugin

example/plugins/c-api/basic_auth/basic_auth.cc:193–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static int
194auth_plugin(TSCont contp, TSEvent event, void *edata)
195{
196 TSHttpTxn txnp = static_cast<TSHttpTxn>(edata);
197
198 switch (event) {
199 case TS_EVENT_HTTP_OS_DNS:
200 handle_dns(txnp, contp);
201 return 0;
202 case TS_EVENT_HTTP_SEND_RESPONSE_HDR:
203 handle_response(txnp);
204 return 0;
205 default:
206 break;
207 }
208
209 return 0;
210}
211
212void
213TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED)

Callers

nothing calls this directly

Calls 2

handle_dnsFunction · 0.70
handle_responseFunction · 0.70

Tested by

no test coverage detected