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

Function TSHttpTxnCntlSet

src/api/InkAPI.cc:5180–5222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5178}
5179
5180TSReturnCode
5181TSHttpTxnCntlSet(TSHttpTxn txnp, TSHttpCntlType cntl, bool data)
5182{
5183 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
5184
5185 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
5186
5187 switch (cntl) {
5188 case TS_HTTP_CNTL_LOGGING_MODE:
5189 sm->t_state.api_info.logging_enabled = data;
5190 break;
5191
5192 case TS_HTTP_CNTL_INTERCEPT_RETRY_MODE:
5193 sm->t_state.api_info.retry_intercept_failures = data;
5194 break;
5195
5196 case TS_HTTP_CNTL_RESPONSE_CACHEABLE:
5197 sm->t_state.api_resp_cacheable = data;
5198 break;
5199
5200 case TS_HTTP_CNTL_REQUEST_CACHEABLE:
5201 sm->t_state.api_req_cacheable = data;
5202 break;
5203
5204 case TS_HTTP_CNTL_SERVER_NO_STORE:
5205 sm->t_state.api_server_response_no_store = data;
5206 break;
5207
5208 case TS_HTTP_CNTL_TXN_DEBUG:
5209 sm->debug_on = data;
5210 break;
5211
5212 case TS_HTTP_CNTL_SKIP_REMAPPING:
5213 sm->t_state.api_skip_all_remapping = data;
5214 break;
5215
5216 default:
5217 return TS_ERROR;
5218 break;
5219 }
5220
5221 return TS_SUCCESS;
5222}
5223
5224bool
5225TSHttpTxnCntlGet(TSHttpTxn txnp, TSHttpCntlType ctrl)

Callers 15

_setMethod · 0.85
mytest_handlerFunction · 0.85
ssn_handlerFunction · 0.85
parent_proxy_handlerFunction · 0.85
cache_hook_handlerFunction · 0.85
transform_hook_handlerFunction · 0.85
altinfo_hook_handlerFunction · 0.85
setSkipRemappingMethod · 0.85
setupServerInterceptFunction · 0.85
handleReadRequestHeaderFunction · 0.85
read_requestFunction · 0.85
XScanRequestHeadersFunction · 0.85

Calls 1

sdk_sanity_check_txnFunction · 0.85

Tested by 6

mytest_handlerFunction · 0.68
ssn_handlerFunction · 0.68
parent_proxy_handlerFunction · 0.68
cache_hook_handlerFunction · 0.68
transform_hook_handlerFunction · 0.68
altinfo_hook_handlerFunction · 0.68