| 73 | } |
| 74 | |
| 75 | void |
| 76 | TSPluginInit(int /* argc ATS_UNUSED */, const char ** /* argv ATS_UNUSED */) |
| 77 | { |
| 78 | TSPluginRegistrationInfo info; |
| 79 | |
| 80 | info.plugin_name = const_cast<char *>(plugin_name); |
| 81 | info.support_email = const_cast<char *>("dev@trafficserver.apache.org"); |
| 82 | info.vendor_name = const_cast<char *>("Verizon Media"); |
| 83 | |
| 84 | if (TSPluginRegister(&info) != TS_SUCCESS) { |
| 85 | TSError("[%s] plugin registration failed\n", plugin_name); |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | TSAssert(TS_SUCCESS == TSTextLogObjectCreate(plugin_name, TS_LOG_MODE_ADD_TIMESTAMP, &pluginlog)); |
| 90 | TSHttpHookAdd(TS_HTTP_READ_REQUEST_HDR_HOOK, TSContCreate(global_handler, nullptr)); |
| 91 | } |
nothing calls this directly
no test coverage detected