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

Method check_field_configured

plugins/experimental/cache_fill/rules.cc:137–145  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

bgFetchAllowedMethod · 0.45

Calls 2

visitFunction · 0.85
check_valueFunction · 0.70

Tested by

no test coverage detected