| 31 | } // end anonymous namespace |
| 32 | |
| 33 | void |
| 34 | HttpHookState::init(TSHttpHookID id, HttpAPIHooks const *global, HttpAPIHooks const *ssn, HttpAPIHooks const *txn) |
| 35 | { |
| 36 | _id = id; |
| 37 | |
| 38 | if (global) { |
| 39 | _global.init(global, id); |
| 40 | } else { |
| 41 | _global.clear(); |
| 42 | } |
| 43 | |
| 44 | if (ssn) { |
| 45 | _ssn.init(ssn, id); |
| 46 | } else { |
| 47 | _ssn.clear(); |
| 48 | } |
| 49 | |
| 50 | if (txn) { |
| 51 | _txn.init(txn, id); |
| 52 | } else { |
| 53 | _txn.clear(); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | APIHook const * |
| 58 | HttpHookState::getNext() |