| 191 | } |
| 192 | |
| 193 | static int |
| 194 | auth_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 | |
| 212 | void |
| 213 | TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED) |
nothing calls this directly
no test coverage detected