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

Function bypass_ok

src/proxy/http/HttpTransact.cc:126–139  ·  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

124// wrapper to choose between a remap next hop strategy or use parent.config
125// remap next hop strategy is preferred
126inline static bool
127bypass_ok(HttpTransact::State *s)
128{
129 url_mapping *mp = s->url_map.getMapping();
130 if (s->response_action.handled) {
131 return s->response_action.action.goDirect;
132 } else if (mp && mp->strategy) {
133 // remap strategies do not support the TSHttpTxnParentProxySet API.
134 return mp->strategy->go_direct;
135 } else if (s->parent_params) {
136 return s->parent_result.bypass_ok();
137 }
138 return false;
139}
140
141// wrapper to choose between a remap next hop strategy or use parent.config
142// remap next hop strategy is preferred

Callers 1

Calls 2

getMappingMethod · 0.80
bypass_okMethod · 0.45

Tested by

no test coverage detected