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

Method set_hook

plugins/header_rewrite/statement.cc:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool
51Statement::set_hook(TSHttpHookID hook)
52{
53 bool ret = std::find(_allowed_hooks.begin(), _allowed_hooks.end(), hook) != _allowed_hooks.end();
54
55 if (ret) {
56 _hook = hook;
57 }
58
59 return ret;
60}
61
62// This should be overridden for any Statement which only supports some hooks
63void

Callers 3

make_conditionMethod · 0.45
add_operatorMethod · 0.45
parse_configMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected