| 106 | } |
| 107 | |
| 108 | static int |
| 109 | add_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 | |
| 123 | void |
| 124 | TSPluginInit(int argc, const char *argv[]) |
nothing calls this directly
no test coverage detected