| 139 | } |
| 140 | |
| 141 | int |
| 142 | ProxySession::do_api_callout(TSHttpHookID id) |
| 143 | { |
| 144 | ink_assert(id == TS_HTTP_SSN_START_HOOK || id == TS_HTTP_SSN_CLOSE_HOOK); |
| 145 | hook_state.init(id, http_global_hooks, &api_hooks); |
| 146 | /// Verify if there is any hook to invoke |
| 147 | cur_hook = hook_state.getNext(); |
| 148 | if (nullptr != cur_hook) { |
| 149 | SET_HANDLER(&ProxySession::state_api_callout); |
| 150 | return this->state_api_callout(EVENT_NONE, nullptr); |
| 151 | } else { |
| 152 | this->handle_api_return(TS_EVENT_HTTP_CONTINUE); |
| 153 | } |
| 154 | return 0; |
| 155 | } |
| 156 | |
| 157 | void |
| 158 | ProxySession::handle_api_return(int event) |
nothing calls this directly
no test coverage detected