MCPcopy Create free account
hub / github.com/apache/trafficserver / do_api_callout

Method do_api_callout

src/proxy/ProxySession.cc:141–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141int
142ProxySession::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
157void
158ProxySession::handle_api_return(int event)

Callers

nothing calls this directly

Calls 4

state_api_calloutMethod · 0.95
handle_api_returnMethod · 0.95
initMethod · 0.45
getNextMethod · 0.45

Tested by

no test coverage detected