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

Method IP

src/cripts/Bundles/HRWBridge.cc:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102};
103
104IP::IP(const cripts::string_view &type) : super_type(type)
105{
106 if (type == "CLIENT") {
107 _type = Type::CLIENT;
108 } else if (type == "INBOUND") {
109 _type = Type::INBOUND;
110 } else if (type == "SERVER") {
111 _type = Type::SERVER;
112 } else if (type == "OUTBOUND") {
113 _type = Type::INBOUND;
114 } else {
115 CFatal("[Cripts::Headers] Unknown HRWBridge IP type: %s.", type.data());
116 }
117}
118
119cripts::string_view
120IP::value(cripts::Context *context)

Callers 1

valueMethod · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected