| 51 | } |
| 52 | |
| 53 | void |
| 54 | TSPluginInit(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 | } |
nothing calls this directly
no test coverage detected