| 5901 | } |
| 5902 | |
| 5903 | void |
| 5904 | TSHttpTxnServerIntercept(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 | |
| 5918 | void |
| 5919 | TSHttpTxnIntercept(TSCont contp, TSHttpTxn txnp) |