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

Method initialize

plugins/header_rewrite/operators.cc:117–129  ·  view source on GitHub ↗

OperatorConfig

Source from the content-addressed store, hash-verified

115
116// OperatorConfig
117void
118OperatorSetConfig::initialize(Parser &p)
119{
120 Operator::initialize(p);
121 _config = p.get_arg();
122
123 if (TS_SUCCESS == TSHttpTxnConfigFind(_config.c_str(), _config.size(), &_key, &_type)) {
124 _value.set_value(p.get_value(), this);
125 } else {
126 _key = TS_CONFIG_NULL;
127 TSError("[%s] no such records config: %s", PLUGIN_NAME, _config.c_str());
128 }
129}
130
131bool
132OperatorSetConfig::exec(const Resources &res) const

Callers

nothing calls this directly

Calls 15

TSHttpTxnConfigFindFunction · 0.85
TSHttpHdrReasonLookupFunction · 0.85
_tokenizeFunction · 0.85
TSStatFindNameFunction · 0.85
TSStatCreateFunction · 0.85
pathClass · 0.85
set_valueMethod · 0.80
get_int_valueMethod · 0.80
from_urlMethod · 0.80
to_urlMethod · 0.80
getRemapPluginMethod · 0.80

Tested by

no test coverage detected