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

Method check_field_configured

plugins/background_fetch/rules.cc:136–144  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////// Check if a header excludes us from running the background fetch

Source from the content-addressed store, hash-verified

134// Check if a header excludes us from running the background fetch
135//
136bool
137BgFetchRule::check_field_configured(TSHttpTxn txnp) const
138{
139 return std::visit(swoc::meta::vary{[=](std::monostate) { return false; },
140 [=](swoc::IPRange const &range) { return check_value(txnp, range); },
141 [=](size_cmp_type const &cmp) { return check_value(txnp, cmp); },
142 [=](field_cmp_type const &cmp) { return check_value(txnp, cmp); }},
143 _value);
144}

Callers 1

bgFetchAllowedMethod · 0.45

Calls 2

visitFunction · 0.85
check_valueFunction · 0.70

Tested by

no test coverage detected