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

Method handle_api_return

src/proxy/ProxySession.cc:157–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void
158ProxySession::handle_api_return(int event)
159{
160 TSHttpHookID hookid = hook_state.id();
161
162 SET_HANDLER(&ProxySession::state_api_callout);
163
164 cur_hook = nullptr;
165
166 switch (hookid) {
167 case TS_HTTP_SSN_START_HOOK:
168 if (event == TS_EVENT_HTTP_ERROR) {
169 this->do_io_close();
170 } else {
171 this->start();
172 }
173 break;
174 case TS_HTTP_SSN_CLOSE_HOOK: {
175 free(); // You can now clean things up
176 break;
177 }
178 default:
179 Fatal("received invalid session hook %s (%d)", HttpDebugNames::get_api_hook_name(hookid), hookid);
180 break;
181 }
182}
183
184bool
185ProxySession::is_chunked_encoding_supported() const

Callers 2

state_api_calloutMethod · 0.95
do_api_calloutMethod · 0.95

Calls 3

idMethod · 0.45
do_io_closeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected