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

Function is_api_result

src/proxy/http/HttpTransact.cc:143–156  ·  view source on GitHub ↗

wrapper to choose between a remap next hop strategy or use parent.config remap next hop strategy is preferred

Source from the content-addressed store, hash-verified

141// wrapper to choose between a remap next hop strategy or use parent.config
142// remap next hop strategy is preferred
143inline static bool
144is_api_result(HttpTransact::State *s)
145{
146 bool r = false;
147 url_mapping *mp = s->url_map.getMapping();
148
149 if (mp && mp->strategy) {
150 // remap strategies do not support the TSHttpTxnParentProxySet API.
151 r = false;
152 } else if (s->parent_params) {
153 r = s->parent_result.is_api_result();
154 }
155 return r;
156}
157
158// wrapper to get the max_retries.
159// Does NOT check the strategy; if strategy exists, strategy->responseIsRetryable should be called instead.

Callers 5

parent_is_proxyMethod · 0.85
retry_typeMethod · 0.85
max_retriesMethod · 0.85
bypass_okMethod · 0.85

Calls 2

getMappingMethod · 0.80
is_api_resultMethod · 0.80

Tested by

no test coverage detected