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

Function TSHttpTxnServerIntercept

src/api/InkAPI.cc:5903–5916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5901}
5902
5903void
5904TSHttpTxnServerIntercept(TSCont contp, TSHttpTxn txnp)
5905{
5906 HttpSM *http_sm = reinterpret_cast<HttpSM *>(txnp);
5907
5908 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
5909 sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
5910
5911 TSIOBufferSizeIndex buffer_index = TSPluginVCIOBufferIndexGet(txnp);
5912 TSIOBufferWaterMark buffer_water_mark = TSPluginVCIOBufferWaterMarkGet(txnp);
5913
5914 http_sm->plugin_tunnel_type = HTTP_PLUGIN_AS_SERVER;
5915 http_sm->plugin_tunnel = PluginVCCore::alloc(reinterpret_cast<INKContInternal *>(contp), buffer_index, buffer_water_mark);
5916}
5917
5918void
5919TSHttpTxnIntercept(TSCont contp, TSHttpTxn txnp)

Callers 10

InterceptTxnHookFunction · 0.85
cont_test_handlerFunction · 0.85
InterceptPluginMethod · 0.85
GeneratorTxnHookFunction · 0.85
setupServerInterceptFunction · 0.85
handleReadRequestHeaderFunction · 0.85
StaticHitSetupInterceptFunction · 0.85
HTTPStatsSetupInterceptFunction · 0.85
serverInterceptSetupFunction · 0.85

Calls 4

sdk_sanity_check_txnFunction · 0.85

Tested by 1

cont_test_handlerFunction · 0.68