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

Function TSPluginInit

example/plugins/c-api/protocol_stack/protocol_stack.cc:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void
54TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED)
55{
56 TSPluginRegistrationInfo info;
57
58 info.plugin_name = PLUGIN_NAME;
59 info.vendor_name = "Apache Software Foundation";
60 info.support_email = "dev@trafficserver.apache.org";
61
62 if (TSPluginRegister(&info) != TS_SUCCESS) {
63 TSError("[%s] Plugin registration failed", PLUGIN_NAME);
64 }
65
66 TSHttpHookAdd(TS_HTTP_READ_REQUEST_HDR_HOOK, TSContCreate(proto_stack_cb, nullptr));
67}

Callers

nothing calls this directly

Calls 4

TSPluginRegisterFunction · 0.85
TSHttpHookAddFunction · 0.85
TSContCreateFunction · 0.85
TSErrorFunction · 0.50

Tested by

no test coverage detected