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

Method initialize

plugins/header_rewrite/conditions.cc:44–56  ·  view source on GitHub ↗

ConditionStatus

Source from the content-addressed store, hash-verified

42
43// ConditionStatus
44void
45ConditionStatus::initialize(Parser &p)
46{
47 Condition::initialize(p);
48 MatcherType *match = new MatcherType(_cond_op);
49
50 match->set(static_cast<TSHttpStatus>(strtol(p.get_arg().c_str(), nullptr, 10)), mods());
51 _matcher = match;
52
53 require_resources(RSRC_SERVER_RESPONSE_HEADERS);
54 require_resources(RSRC_CLIENT_RESPONSE_HEADERS);
55 require_resources(RSRC_RESPONSE_STATUS);
56}
57
58void
59ConditionStatus::initialize_hooks()

Callers

nothing calls this directly

Calls 4

TSErrorFunction · 0.70
setMethod · 0.45
c_strMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected