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

Method setup_client_request_plugin_agents

src/proxy/http/HttpSM.cc:7442–7455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7440}
7441
7442void
7443HttpSM::setup_client_request_plugin_agents(HttpTunnelProducer *p, int num_header_bytes)
7444{
7445 APIHook *agent = txn_hook_get(TS_HTTP_REQUEST_CLIENT_HOOK);
7446 has_active_request_plugin_agents = agent != nullptr;
7447 while (agent) {
7448 INKVConnInternal *contp = static_cast<INKVConnInternal *>(agent->m_cont);
7449 tunnel.add_consumer(contp, p->vc, &HttpSM::tunnel_handler_plugin_agent, HT_HTTP_CLIENT, "request plugin agent",
7450 num_header_bytes);
7451 // We don't put these in the SM VC table because the tunnel
7452 // will clean them up in do_io_close().
7453 agent = agent->next();
7454 }
7455}
7456
7457inline void
7458HttpSM::transform_cleanup(TSHttpHookID hook, HttpTransformInfo *info)

Calls 2

add_consumerMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected