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

Function TSHttpTxnConfigIntSet

src/api/InkAPI.cc:7463–7482  ·  view source on GitHub ↗

APIs to manipulate the overridable configuration options. */

Source from the content-addressed store, hash-verified

7461/* APIs to manipulate the overridable configuration options.
7462 */
7463TSReturnCode
7464TSHttpTxnConfigIntSet(TSHttpTxn txnp, TSOverridableConfigKey conf, TSMgmtInt value)
7465{
7466 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
7467
7468 HttpSM *s = reinterpret_cast<HttpSM *>(txnp);
7469 MgmtConverter const *conv;
7470
7471 s->t_state.setup_per_txn_configs();
7472
7473 void *dest = _conf_to_memberp(conf, &(s->t_state.my_txn_conf()), conv);
7474
7475 if (!dest || !conv->store_int) {
7476 return TS_ERROR;
7477 }
7478
7479 conv->store_int(dest, value);
7480
7481 return TS_SUCCESS;
7482}
7483
7484TSReturnCode
7485TSHttpTxnConfigIntGet(TSHttpTxn txnp, TSOverridableConfigKey conf, TSMgmtInt *value)

Callers 15

global_pluginFunction · 0.85
_setMethod · 0.85
configIntSetMethod · 0.85
TSRemapDoRemapFunction · 0.85
CheckCacheableFunction · 0.85
handle_purgeFunction · 0.85
XScanRequestHeadersFunction · 0.85
TSRemapDoRemapFunction · 0.85
TSRemapDoRemapFunction · 0.85

Calls 3

sdk_sanity_check_txnFunction · 0.85
_conf_to_memberpFunction · 0.85
setup_per_txn_configsMethod · 0.80