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

Method Execute

src/cripts/Error.cc:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24
25void
26Error::Execute(cripts::Context *context)
27{
28 if (Failed()) {
29 TSHttpTxnStatusSet(context->state.txnp, _status._getter());
30 // ToDo: So we can't set the reason phrase here, because ATS doesn't have that
31 // as a transaction API, only on the response header...
32 }
33
34 if (Redirected()) {
35 context->rri->redirect = 1;
36 }
37}
38
39// These are static, to be used with the set() wrapper define
40void

Callers 1

TSRemapDoRemapFunction · 0.80

Calls 2

TSHttpTxnStatusSetFunction · 0.85
_getterMethod · 0.45

Tested by

no test coverage detected