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

Function TSHttpTxnIntercept

src/api/InkAPI.cc:5918–5931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5916}
5917
5918void
5919TSHttpTxnIntercept(TSCont contp, TSHttpTxn txnp)
5920{
5921 HttpSM *http_sm = reinterpret_cast<HttpSM *>(txnp);
5922
5923 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
5924 sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
5925
5926 TSIOBufferSizeIndex buffer_index = TSPluginVCIOBufferIndexGet(txnp);
5927 TSIOBufferWaterMark buffer_water_mark = TSPluginVCIOBufferWaterMarkGet(txnp);
5928
5929 http_sm->plugin_tunnel_type = HTTP_PLUGIN_AS_INTERCEPT;
5930 http_sm->plugin_tunnel = PluginVCCore::alloc(reinterpret_cast<INKContInternal *>(contp), buffer_index, buffer_water_mark);
5931}
5932
5933TSIOBufferSizeIndex
5934TSPluginVCIOBufferIndexGet(TSHttpTxn txnp)

Callers 8

setup_requestFunction · 0.85
cont_test_handlerFunction · 0.85
InterceptPluginMethod · 0.85
read_requestFunction · 0.85
stats_over_http.ccFile · 0.85
health_check_originFunction · 0.85
CB_Read_Request_HdrFunction · 0.85
ts_lua_http_interceptFunction · 0.85

Calls 4

sdk_sanity_check_txnFunction · 0.85

Tested by 1

cont_test_handlerFunction · 0.68